mirror of
https://github.com/ansible/awx.git
synced 2026-01-19 21:51:26 -03:30
Force schedule save during celery startup
This commit is contained in:
parent
4354279410
commit
251dae657a
@ -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))
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user