1
0
mirror of https://github.com/ansible/awx.git synced 2024-11-01 08:21:15 +03:00

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
No known key found for this signature in database
GPG Key ID: F2AA5F2122351777
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
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:
last_run = max_interval

View File

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