Fix errors in websocket code due to missing template

This commit is contained in:
Alan Rominger 2022-08-18 14:05:06 -04:00
parent 532aa83555
commit 704e4781d9
No known key found for this signature in database
GPG Key ID: C2D7EAAA12B63559

View File

@ -1289,7 +1289,8 @@ class UnifiedJob(
if self.spawned_by_workflow:
status_data['group_name'] = "workflow_events"
status_data['workflow_job_template_id'] = self.unified_job_template.id
if self.workflow_job:
status_data['workflow_job_template_id'] = self.workflow_job.workflow_job_template_id
emit_channel_notification('workflow_events-' + str(self.workflow_job_id), status_data)
except IOError: # includes socket errors
logger.exception('%s failed to emit channel msg about status change', self.log_format)