summaryrefslogtreecommitdiff
path: root/tasks.py
diff options
context:
space:
mode:
Diffstat (limited to 'tasks.py')
-rw-r--r--tasks.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tasks.py b/tasks.py
index e65a256..5ece5fc 100644
--- a/tasks.py
+++ b/tasks.py
@@ -1,14 +1,14 @@
import logging
from celery import Celery
-from celery.schedules import crontab
+from datetime import timedelta
celery = Celery('tasks', broker='redis://localhost')
CELERYBEAT_SCHEDULE = {
'every-ten-secs': {
'task': 'tasks.print_fib',
- 'schedule': crontab(minute='*/1'),
+ 'schedule': timedelta(seconds=10),
'args': (30),
},
}