Skip to content

Commit

Permalink
filter out pending jobs in transfer script
Browse files Browse the repository at this point in the history
  • Loading branch information
jtherrmann committed Dec 10, 2024
1 parent 39cc0f8 commit 17f5791
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion data_management/hyp3_transfer_script.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def hyp3_transfer_script(config_file: str, prompt: bool = False):

objects_to_copy = []
project_contents = get_project_contents(target_bucket, target_prefix)
for job in jobs.filter_jobs(succeeded=True, running=False, failed=False, include_expired=False):
for job in jobs.filter_jobs(succeeded=True, pending=False, running=False, failed=False, include_expired=False):
source_bucket = job.files[0]['s3']['bucket']
zip_key = job.files[0]['s3']['key']
for ext in config['transfer_spec']['extensions']:
Expand Down

0 comments on commit 17f5791

Please sign in to comment.