Skip to content

Commit af638a4

Browse files
committed
revert: some code
1 parent 084ed7b commit af638a4

File tree

1 file changed

+4
-16
lines changed

1 file changed

+4
-16
lines changed

src/argowrapper/engine/argo_engine.py

+4-16
Original file line numberDiff line numberDiff line change
@@ -358,21 +358,9 @@ def _get_archived_workflow_wf_name_and_team_project(
358358
# call workflow details endpoint:
359359
workflow_details = self.get_workflow_details(None, archived_workflow_uid)
360360
# get the workflow given name from the parsed details:
361-
given_name = (
362-
workflow_details.get("wf_name", "")
363-
if isinstance(workflow_details, dict)
364-
else ""
365-
)
366-
team_project = (
367-
workflow_details.get(GEN3_TEAM_PROJECT_METADATA_LABEL, "")
368-
if isinstance(workflow_details, dict)
369-
else ""
370-
)
371-
gen3username = (
372-
workflow_details.get(GEN3_USER_METADATA_LABEL, "")
373-
if isinstance(workflow_details, dict)
374-
else ""
375-
)
361+
given_name = workflow_details["wf_name"]
362+
team_project = workflow_details[GEN3_TEAM_PROJECT_METADATA_LABEL]
363+
gen3username = workflow_details[GEN3_USER_METADATA_LABEL]
376364
self.workflow_given_names_cache[archived_workflow_uid] = (
377365
given_name,
378366
team_project,
@@ -714,7 +702,7 @@ def check_user_monthly_workflow_cap(
714702
self,
715703
request_token: str,
716704
billing_id: Optional[int] = None,
717-
custom_limit: Optional[int] = None
705+
custom_limit: Optional[int] = None,
718706
):
719707
"""
720708
Query Argo service to see how many workflow runs user already

0 commit comments

Comments
 (0)