Rename from schedule_change to schedule_changed to fit our socketio motif.

This commit is contained in:
Matthew Jones 2014-07-18 13:24:19 -04:00
parent b35da4557f
commit e35a530dbb
2 changed files with 2 additions and 2 deletions

View File

@ -105,7 +105,7 @@ class Schedule(CommonModel):
self.dtend = make_aware(datetime.datetime.strptime(until_date, "%Y%m%dT%H%M%SZ"), get_default_timezone())
if 'count' in self.rrule.lower():
self.dtend = future_rs[-1]
emit_websocket_notification('/socket.io/schedules', 'schedule_change', dict(id=self.id))
emit_websocket_notification('/socket.io/schedules', 'schedule_changed', dict(id=self.id))
with ignore_inventory_computed_fields():
self.unified_job_template.update_computed_fields()

View File

@ -96,7 +96,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=['job_status', 'job_explanation'])
new_unified_job.socketio_emit_status("failed")
emit_websocket_notification('/socket.io/schedules', 'schedule_change', dict(id=schedule.id))
emit_websocket_notification('/socket.io/schedules', 'schedule_changed', dict(id=schedule.id))
@task()
def notify_task_runner(metadata_dict):