diff --git a/openqa_trigger/report_job_results.py b/openqa_trigger/report_job_results.py index bffa76c..b1b2704 100644 --- a/openqa_trigger/report_job_results.py +++ b/openqa_trigger/report_job_results.py @@ -25,7 +25,7 @@ def get_passed_testcases(job_ids, client): for job_id, url in running_jobs.items(): output = client.openqa_request('GET', url) job_state = output['job'] - if job_state['state'] == 'done': + if job_state['state'] in ('done', 'cancelled'): logger.info("job %s is done", job_id) finished_jobs[job_id] = job_state del running_jobs[job_id]