add group_name to channel data

This commit is contained in:
Wayne Witzel III
2016-08-29 18:15:11 -04:00
parent ee09d881a4
commit 5faa21b72d
6 changed files with 9 additions and 4 deletions

View File

@@ -177,7 +177,7 @@ def tower_periodic_scheduler(self):
new_unified_job.job_explanation = "Scheduled job could not start because it was not in the right state or required manual credentials"
new_unified_job.save(update_fields=['status', 'job_explanation'])
new_unified_job.websocket_emit_status("failed")
emit_channel_notification('schedules-changed', dict(id=schedule.id))
emit_channel_notification('schedules-changed', dict(id=schedule.id, group_name="schedules"))
@task(queue='default')
def notify_task_runner(metadata_dict):