Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
patriciacatandi committed Sep 10, 2024
1 parent f7a5542 commit 39f9a36
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions pipelines/meteorologia/radar/mendanha/flows.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@
formatted_time, saved_with_background_img_path
)
upload_file_to_storage(
project="datario",
bucket_name="datario-public",
destination_blob_name=destination_blob_name,
source_file_name=source_file_name,
Expand Down
6 changes: 4 additions & 2 deletions pipelines/meteorologia/radar/mendanha/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -539,11 +539,13 @@ def create_visualization_with_background(radar_2d, radar_product: str, cbar_titl


@task
def upload_file_to_storage(bucket_name: str, destination_blob_name: str, source_file_name: str):
def upload_file_to_storage(
project: str, bucket_name: str, destination_blob_name: str, source_file_name: str
):
"""
Upload files to GCS
"""
storage_client = storage.Client(project="datario-public")
storage_client = storage.Client(project=project)
bucket = storage_client.bucket(bucket_name)
# Cria um blob (o arquivo dentro do bucket)
blob = bucket.blob(destination_blob_name)
Expand Down

0 comments on commit 39f9a36

Please sign in to comment.