mirror of
https://github.com/ansible/awx.git
synced 2026-02-27 15:58:45 -03:30
Avoid unwanted activity stream entries on startup
Schedule computed fields generates a modification entry on system startup - this change avoids that noise
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