Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
15 lines (12 sloc) 356 Bytes
CELERY_IMPORTS = ('tasks')
CELERY_IGNORE_RESULT = False
BROKER_HOST = "127.0.0.1" #IP address of the server running RabbitMQ and Celery
BROKER_PORT = 5672
BROKER_URL = 'amqp://'
from datetime import timedelta
CELERYBEAT_SCHEDULE = {
'doctor-every-10-seconds': {
'task': 'tasks.fav_doctor',
'schedule': timedelta(seconds=10),
},
}