mirror of
https://github.com/ansible/awx.git
synced 2026-03-11 22:49:32 -02:30
Merge pull request #6950 from AlanCoding/startup_sch_mod_act_st
Avoid unwanted activity stream entries on startup
This commit is contained in:
@@ -83,7 +83,9 @@ def celery_startup(conf=None, **kwargs):
|
||||
for sch in Schedule.objects.all():
|
||||
try:
|
||||
sch.update_computed_fields()
|
||||
sch.save()
|
||||
from awx.main.signals import disable_activity_stream
|
||||
with disable_activity_stream():
|
||||
sch.save()
|
||||
except Exception as e:
|
||||
logger.error("Failed to rebuild schedule {}: {}".format(sch, e))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user