Skip to content

Commit

Permalink
Fix errors in websocket code due to missing template
Browse files Browse the repository at this point in the history
  • Loading branch information
AlanCoding committed Aug 18, 2022
1 parent 532aa83 commit 704e478
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion awx/main/models/unified_jobs.py
Original file line number Diff line number Diff line change
Expand Up @@ -1289,7 +1289,8 @@ def _websocket_emit_status(self, status):

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)
Expand Down

0 comments on commit 704e478

Please sign in to comment.