Skip to content

Commit

Permalink
fix(progress): handle stopped jobs (#195)
Browse files Browse the repository at this point in the history
  • Loading branch information
mdonadoni committed Jan 23, 2024
1 parent 52c34ec commit e86775b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion reana_workflow_engine_serial/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit e86775b

Please sign in to comment.