workers.queuecleanup: s/week/day cleanup frequency
This commit is contained in:
parent
20ef43d5fb
commit
2bd1e76267
1 changed files with 2 additions and 1 deletions
|
@ -10,7 +10,8 @@ from workers.worker import Worker
|
|||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
DELETION_DATE_THRESHOLD = timedelta(days=7)
|
||||
|
||||
DELETION_DATE_THRESHOLD = timedelta(days=1)
|
||||
DELETION_COUNT_THRESHOLD = 50
|
||||
BATCH_SIZE = 500
|
||||
QUEUE_CLEANUP_FREQUENCY = app.config.get('QUEUE_CLEANUP_FREQUENCY', 60*60*24)
|
||||
|
|
Reference in a new issue