diff --git a/metaflow/plugins/argo/argo_workflows_deployer_objects.py b/metaflow/plugins/argo/argo_workflows_deployer_objects.py index 58222407e66..b9a8153fc7c 100644 --- a/metaflow/plugins/argo/argo_workflows_deployer_objects.py +++ b/metaflow/plugins/argo/argo_workflows_deployer_objects.py @@ -206,7 +206,8 @@ def is_running(self): True if the workflow status is either 'Pending' or 'Running', False otherwise. """ - return self.status is not None and self.status in ["Pending", "Running"] + workflow_status = self.status + return workflow_status is not None and workflow_status in ["Pending", "Running"] @property def status(self) -> Optional[str]: