mirror of
https://github.com/ansible/awx.git
synced 2026-05-24 00:57:48 -02:30
Force schedule save during celery startup
This commit is contained in:
@@ -76,6 +76,7 @@ def celery_startup(conf=None, **kwargs):
|
|||||||
for sch in Schedule.objects.all():
|
for sch in Schedule.objects.all():
|
||||||
try:
|
try:
|
||||||
sch.update_computed_fields()
|
sch.update_computed_fields()
|
||||||
|
sch.save()
|
||||||
except Exception, e:
|
except Exception, e:
|
||||||
logger.error("Failed to rebuild schedule {}: {}".format(sch, e))
|
logger.error("Failed to rebuild schedule {}: {}".format(sch, e))
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user