Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
app = Celery('first_app', broker='redis://localhost/2')
# New code below
app.conf.task_routes = {
'celery_stuff.tasks.serve_a_beer': {'queue': 'beer'},
'celery_stuff.tasks.serve_a_coffee': {'queue': 'coffee'}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment