update frequency of collection for automation analytics

This commit is contained in:
Christian Adams
2019-10-03 15:29:34 -04:00
committed by Ryan Petrello
parent 7fe32ab607
commit 844b8a803f
2 changed files with 2 additions and 2 deletions

View File

@@ -80,7 +80,7 @@ def gather(dest=None, module=None, collection_type='scheduled'):
last_run = state.last_run last_run = state.last_run
logger.debug("Last analytics run was: {}".format(last_run)) logger.debug("Last analytics run was: {}".format(last_run))
max_interval = now() - timedelta(days=7) max_interval = now() - timedelta(weeks=4)
if last_run < max_interval or not last_run: if last_run < max_interval or not last_run:
last_run = max_interval last_run = max_interval

View File

@@ -470,7 +470,7 @@ CELERYBEAT_SCHEDULE = {
}, },
'gather_analytics': { 'gather_analytics': {
'task': 'awx.main.tasks.gather_analytics', 'task': 'awx.main.tasks.gather_analytics',
'schedule': crontab(hour=0) 'schedule': crontab(hour='*/6')
}, },
'task_manager': { 'task_manager': {
'task': 'awx.main.scheduler.tasks.run_task_manager', 'task': 'awx.main.scheduler.tasks.run_task_manager',