mirror of
https://github.com/ansible/awx.git
synced 2026-03-04 02:01:01 -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():
|
for sch in Schedule.objects.all():
|
||||||
try:
|
try:
|
||||||
sch.update_computed_fields()
|
sch.update_computed_fields()
|
||||||
sch.save()
|
from awx.main.signals import disable_activity_stream
|
||||||
|
with disable_activity_stream():
|
||||||
|
sch.save()
|
||||||
except Exception as e:
|
except Exception as 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