Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
from celery.schedules import crontab
"host": "",
"port": 27017,
"database": "jobs",
"taskmeta_collection": "stock_taskmeta_collection",
#used to schedule tasks periodically and passing optional arguments
#Can be very useful. Celery does not seem to support scheduled task but only periodic
'every-minute': {
'task': 'tasks.add',
'schedule': crontab(minute='*/1'),
'args': (1,2),
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment