Skip to content

Commit

Permalink
Revert "Fix errors in websocket code due to missing template"
Browse files Browse the repository at this point in the history
  • Loading branch information
AlanCoding authored Aug 20, 2022
1 parent 2357e24 commit edc3da8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions awx/main/models/unified_jobs.py
Original file line number Diff line number Diff line change
Expand Up @@ -1289,8 +1289,7 @@ def _websocket_emit_status(self, status):

if self.spawned_by_workflow:
status_data['group_name'] = "workflow_events"
if self.workflow_job:
status_data['workflow_job_template_id'] = self.workflow_job.workflow_job_template_id
status_data['workflow_job_template_id'] = self.unified_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 edc3da8

Please sign in to comment.