mirror of
https://github.com/ansible/awx.git
synced 2026-02-26 15:36:04 -03:30
fix looking at wrong id for wf allow_simultaneous
This commit is contained in:
committed by
Seth Foster
parent
7eb0c7dd28
commit
b26d2ab0e9
@@ -270,7 +270,7 @@ class WorkflowManager(TaskBase):
|
|||||||
workflow_to_start = []
|
workflow_to_start = []
|
||||||
running_wfjt_ids = {wf.unified_job_template_id for wf in workflow_jobs_running}
|
running_wfjt_ids = {wf.unified_job_template_id for wf in workflow_jobs_running}
|
||||||
for wf in workflow_jobs_pending:
|
for wf in workflow_jobs_pending:
|
||||||
if wf.allow_simultaneous or wf.pk not in running_wfjt_ids:
|
if wf.allow_simultaneous or wf.unified_job_template_id not in running_wfjt_ids:
|
||||||
wf.status = 'running'
|
wf.status = 'running'
|
||||||
workflow_to_start.append(wf)
|
workflow_to_start.append(wf)
|
||||||
running_wfjt_ids.add(wf.unified_job_template_id)
|
running_wfjt_ids.add(wf.unified_job_template_id)
|
||||||
|
|||||||
Reference in New Issue
Block a user