From 879961f6e2a7cdca9e88c0fdb70d3fd1ffe691a7 Mon Sep 17 00:00:00 2001 From: Marco Donadoni Date: Tue, 23 Jan 2024 16:55:46 +0100 Subject: [PATCH] fix(progress): handle stopped jobs (#195) Closes reanahub/reana-workflow-controller#546 --- reana_workflow_engine_serial/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reana_workflow_engine_serial/utils.py b/reana_workflow_engine_serial/utils.py index 74f823c..5c3c18b 100644 --- a/reana_workflow_engine_serial/utils.py +++ b/reana_workflow_engine_serial/utils.py @@ -143,7 +143,7 @@ def poll_job_status(rjc_api_client, job_id): """Poll for job status.""" job_status = rjc_api_client.check_status(job_id) - while job_status.status not in ["finished", "failed"]: + while job_status.status not in ["finished", "failed", "stopped"]: job_status = rjc_api_client.check_status(job_id) sleep(JOB_STATUS_POLLING_INTERVAL)