From 065d2bc2c6d7b59c417f9ff78ab5cb441c3618c4 Mon Sep 17 00:00:00 2001 From: Arik Fraimovich Date: Sat, 6 Sep 2014 14:18:35 +0300 Subject: [PATCH] Schedule removal of dead tasks --- redash/worker.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/redash/worker.py b/redash/worker.py index 89c53f92..c27a5fd0 100644 --- a/redash/worker.py +++ b/redash/worker.py @@ -13,6 +13,10 @@ celery.conf.update(CELERY_RESULT_BACKEND=settings.CELERY_BACKEND, 'task': 'redash.tasks.refresh_queries', 'schedule': timedelta(seconds=30) }, + 'cleanup_tasks': { + 'task': 'redahs.tasks.cleanup_tasks', + 'schedule': timedelta(minutes=5) + } }, CELERY_TIMEZONE='UTC')