From 0299c9f572ba46c05ace263d4bd80657d41b63a9 Mon Sep 17 00:00:00 2001 From: npetrill Date: Tue, 10 Dec 2024 14:37:49 -0500 Subject: [PATCH] move to same block --- scripts/firecloud_api/firecloud_api2.py | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/scripts/firecloud_api/firecloud_api2.py b/scripts/firecloud_api/firecloud_api2.py index c15c91cf6d..f1b834f571 100644 --- a/scripts/firecloud_api/firecloud_api2.py +++ b/scripts/firecloud_api/firecloud_api2.py @@ -58,19 +58,14 @@ def submit_job(self, submission_data_file): # Check if the submission was created successfully if response.status_code == 201: submission_id = response.json().get('submissionId') - print(f"Job submitted successfully. Submission ID: {submission_id}") + print(f"Job submitted successfully. Submission ID is: {submission_id}") + os.environ['SUBMISSION_ID'] = submission_id return submission_id else: print(f"Failed to submit job. Status code: {response.status_code}") print(f"Response content: {response.text}") return None - #submission_id = response.json().get("submissionId") - print(f"Job submitted successfully. Submission ID: {submission_id}") - #os.environ['SUBMISSION_ID'] = submission_id - #return submission_id - - def upload_test_inputs(self, pipeline_name, test_inputs, branch_name): """