Adds new scheduled task to delete CSV files.

Deletes files for jobs older than 7 days, matching delete process for the actual notifications

Runs 1 minutes past the hour at midnight, 1 and 2 am.
This commit is contained in:
Martyn Inglis
2016-09-07 15:36:59 +01:00
parent c3657839e4
commit 852e207478
3 changed files with 36 additions and 3 deletions

View File

@@ -77,6 +77,11 @@ class Config(object):
'task': 'timeout-sending-notifications',
'schedule': crontab(minute=0, hour='0,1,2'),
'options': {'queue': 'periodic'}
},
'remove_csv_files': {
'task': 'remove_csv_files',
'schedule': crontab(minute=1, hour='0,1,2'),
'options': {'queue': 'periodic'}
}
}
CELERY_QUEUES = [