mirror of
https://github.com/ansible/awx.git
synced 2026-01-12 02:19:58 -03:30
fix looking at wrong id for wf allow_simultaneous
This commit is contained in:
parent
7eb0c7dd28
commit
b26d2ab0e9
@ -270,7 +270,7 @@ class WorkflowManager(TaskBase):
|
||||
workflow_to_start = []
|
||||
running_wfjt_ids = {wf.unified_job_template_id for wf in workflow_jobs_running}
|
||||
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'
|
||||
workflow_to_start.append(wf)
|
||||
running_wfjt_ids.add(wf.unified_job_template_id)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user