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:
parent
7fe32ab607
commit
844b8a803f
@ -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
|
||||
|
||||
|
@ -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',
|
||||
|
Loading…
Reference in New Issue
Block a user