Skip to content

Commit

Permalink
Merge pull request #147 from ASFHyP3/filter-pending
Browse files Browse the repository at this point in the history
filter out pending jobs in transfer script
  • Loading branch information
jtherrmann authored Dec 10, 2024
2 parents 39cc0f8 + 17f5791 commit 49cb8d9
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 49cb8d9

Please sign in to comment.