mirror of
https://github.com/ansible/awx.git
synced 2026-02-25 15:06:02 -03:30
Rename from schedule_change to schedule_changed to fit our socketio motif.
This commit is contained in:
@@ -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())
|
self.dtend = make_aware(datetime.datetime.strptime(until_date, "%Y%m%dT%H%M%SZ"), get_default_timezone())
|
||||||
if 'count' in self.rrule.lower():
|
if 'count' in self.rrule.lower():
|
||||||
self.dtend = future_rs[-1]
|
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():
|
with ignore_inventory_computed_fields():
|
||||||
self.unified_job_template.update_computed_fields()
|
self.unified_job_template.update_computed_fields()
|
||||||
|
|
||||||
|
|||||||
@@ -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.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.save(update_fields=['job_status', 'job_explanation'])
|
||||||
new_unified_job.socketio_emit_status("failed")
|
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()
|
@task()
|
||||||
def notify_task_runner(metadata_dict):
|
def notify_task_runner(metadata_dict):
|
||||||
|
|||||||
Reference in New Issue
Block a user