fix looking at wrong id for wf allow_simultaneous

This commit is contained in:
Elijah DeLee 2022-07-08 14:59:47 -04:00 committed by Seth Foster
parent 7eb0c7dd28
commit b26d2ab0e9
No known key found for this signature in database
GPG Key ID: 86E90D96F7184028

View File

@ -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)