Skip to content

Commit

Permalink
move sci inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
nikellepetrillo committed Dec 11, 2024
1 parent d885b27 commit d0ab897
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions scripts/firecloud_api/firecloud_api2.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ def poll_job_status(self, submission_id):
if submission_status == "Done":
break

# Wait for 60 seconds before polling again
# Wait for 20 seconds before polling again
time.sleep(20)

return workflow_status_map
Expand Down Expand Up @@ -259,11 +259,17 @@ def main(self):
print(submission_id)

elif args.action == "poll_job_status":
# Check for required argument for poll_job_status action
if not args.submission_id:
parser.error("Argument --submission_id is required for 'poll_job_status'")
# Poll the job status with the provided submission ID
api.poll_job_status(args.submission_id)
else:
# Poll the job status with the provided submission ID
workflow_status_map = api.poll_job_status(args.submission_id)

# Convert the dictionary to a JSON string and print it
if workflow_status_map:
print(json.dumps(workflow_status_map)) # Output the dictionary as a JSON string for bash parsing
else:
print("No workflows found or an error occurred.", file=sys.stderr)



Expand Down

0 comments on commit d0ab897

Please sign in to comment.