From b3d4b57ae9933b096134835e5124bbd92b54b340 Mon Sep 17 00:00:00 2001 From: Ryan Petrello Date: Tue, 12 Jan 2021 11:20:33 -0500 Subject: [PATCH] don't record AUTOMATION_ANALYTICS_LAST_GATHER updates this is noisy in the activity stream --- awx/main/tasks.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/awx/main/tasks.py b/awx/main/tasks.py index 3bf67d9e65..1fb7d62cef 100644 --- a/awx/main/tasks.py +++ b/awx/main/tasks.py @@ -378,6 +378,7 @@ def gather_analytics(): from awx.conf.models import Setting from rest_framework.fields import DateTimeField + from awx.main.signals import disable_activity_stream if not settings.INSIGHTS_TRACKING_STATE: return if not (settings.AUTOMATION_ANALYTICS_URL and settings.REDHAT_USERNAME and settings.REDHAT_PASSWORD): @@ -414,7 +415,8 @@ def gather_analytics(): if not _gather_and_ship(incremental_collectors, since=start, until=until): break start = until - settings.AUTOMATION_ANALYTICS_LAST_GATHER = until + with disable_activity_stream(): + settings.AUTOMATION_ANALYTICS_LAST_GATHER = until if subset: _gather_and_ship(subset, since=since, until=gather_time)