mirror of
https://github.com/ansible/awx.git
synced 2026-03-06 19:21:06 -03: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():
|
||||
try:
|
||||
sch.update_computed_fields()
|
||||
sch.save()
|
||||
except Exception, e:
|
||||
logger.error("Failed to rebuild schedule {}: {}".format(sch, e))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user