Skip to content

Commit

Permalink
Fix download to S3 block (#529)
Browse files Browse the repository at this point in the history
  • Loading branch information
ykeremy authored Jun 28, 2024
1 parent 393196a commit dba3d7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion skyvern/forge/sdk/workflow/models/block.py
Original file line number Diff line number Diff line change
Expand Up @@ -615,7 +615,7 @@ async def execute(self, workflow_run_id: str, **kwargs: dict) -> BlockResult:

uri = None
try:
uri = f"s3://{SettingsManager.get_settings().AWS_S3_BUCKET_DOWNLOADS}/{SettingsManager.get_settings().ENV}/{workflow_run_id}/{uuid.uuid4()}"
uri = f"s3://{SettingsManager.get_settings().AWS_S3_BUCKET_UPLOADS}/{SettingsManager.get_settings().ENV}/{workflow_run_id}/{uuid.uuid4()}"
await self._upload_file_to_s3(uri, file_path)
except Exception as e:
LOG.error("DownloadToS3Block: Failed to upload file to S3", uri=uri, error=str(e))
Expand Down

0 comments on commit dba3d7f

Please sign in to comment.