Skip to content

Instantly share code, notes, and snippets.

@horiajurcut
Created February 12, 2014 15:19
Show Gist options
  • Save horiajurcut/8957414 to your computer and use it in GitHub Desktop.
Save horiajurcut/8957414 to your computer and use it in GitHub Desktop.
from __future__ import absolute_import
from celery import Celery
app = Celery('workers',
broker='amqp://user:pass@localhost:5000/vhost',
include=['workers.tasks'])
app.conf.update(
CELERY_TASK_RESULT_EXPIRES=3600,
)
if __name__ == '__main__':
app.start()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment