Skip to content

Instantly share code, notes, and snippets.

@antunesleo
Last active November 26, 2019 23:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save antunesleo/640b60e65998d0a58ab8edd3f6c83050 to your computer and use it in GitHub Desktop.
Save antunesleo/640b60e65998d0a58ab8edd3f6c83050 to your computer and use it in GitHub Desktop.
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