From 251dae657acec97df672d7747a62912605730e73 Mon Sep 17 00:00:00 2001 From: Matthew Jones Date: Thu, 16 Jun 2016 13:14:35 -0400 Subject: [PATCH] Force schedule save during celery startup --- awx/main/tasks.py | 1 + 1 file changed, 1 insertion(+) diff --git a/awx/main/tasks.py b/awx/main/tasks.py index 302a44e89b..2cdb03f551 100644 --- a/awx/main/tasks.py +++ b/awx/main/tasks.py @@ -76,6 +76,7 @@ def celery_startup(conf=None, **kwargs): for sch in Schedule.objects.all(): try: sch.update_computed_fields() + sch.save() except Exception, e: logger.error("Failed to rebuild schedule {}: {}".format(sch, e))