Skip to content

Instantly share code, notes, and snippets.

@batok
Created March 14, 2011 19:12
Show Gist options
  • Save batok/869678 to your computer and use it in GitHub Desktop.
Save batok/869678 to your computer and use it in GitHub Desktop.
celeryconfig.py
from celery.schedules import crontab
CELERY_IMPORTS = ( "tasks", )
CELERY_RESULT_BACKEND = "redis"
REDIS_HOST = "localhost"
REDIS_PORT = 6379
REDIS_DB = 8
REDIS_CONNECT_RETRY = True
BROKER_BACKEND = "redis"
BROKER_HOST = "localhost"
BROKER_PORT = 6379
BROKER_VHOST = "7"
CELERYBEAT_SCHEDULE = { "actualiza-precios" : {
"task": "tasks.actualiza_precios", "schedule": crontab(minute = 15, hour = [0,15])
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment