Skip to content

Commit

Permalink
fix chmod only on s3
Browse files Browse the repository at this point in the history
  • Loading branch information
francesconazzaro committed Aug 6, 2024
1 parent 516ec5c commit 384e224
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cads_worker/worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,8 @@ def submit_workflow(
finally:
os.chdir(cwd)
fs, _ = cacholote.utils.get_cache_files_fs_dirname()
fs.chmod(result.result["args"][0]["file:local_path"], acl="public-read")
if (local_path := result.result["args"][0]["file:local_path"]).startswith("s3://"):
fs.chmod(local_path, acl="public-read")
with context.session_maker() as session:
request = cads_broker.database.set_request_cache_id(
request_uid=job_id,
Expand Down

0 comments on commit 384e224

Please sign in to comment.