Skip to content

Commit 5b709f3

Browse files
authored
Merge pull request #75 from broadinstitute/sn_POD-2874_find_workspace_submission_status
Add method to get workspace submission status
2 parents 902121a + 298ac21 commit 5b709f3

File tree

2 files changed

+19
-2
lines changed

2 files changed

+19
-2
lines changed

VERSION.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
11.4.0
2-
- Adding methods to check if gcp path is writeable
1+
11.5.0
2+
- Adding methods to see workspace workflow status

ops_utils/terra_util.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -972,3 +972,20 @@ def get_submission_status(self, submission_id: str) -> requests.Response:
972972
uri=url,
973973
method=GET
974974
)
975+
976+
def get_workspace_submission_status(self) ->requests.Response:
977+
"""
978+
Get the status of all submissions in a Terra workspace.
979+
980+
**Returns:**
981+
- requests.Response: The response from the request.
982+
"""
983+
url = f"{RAWLS_LINK}/workspaces/{self.billing_project}/{self.workspace_name}/submissions"
984+
logging.info(
985+
f"Getting status for all submissions in workspace {self.billing_project}/{self.workspace_name}"
986+
)
987+
return self.request_util.run_request(
988+
uri=url,
989+
method=GET
990+
)
991+

0 commit comments

Comments
 (0)