Skip to content

Instantly share code, notes, and snippets.

@tbarbugli
Created October 4, 2012 09:56
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 tbarbugli/3832650 to your computer and use it in GitHub Desktop.
Save tbarbugli/3832650 to your computer and use it in GitHub Desktop.
ghettorouter
class GhettoRouter(object):
def route_for_task(self, task, args=None, kwargs=None):
return {'queue': 'celery',
'exchange': 'celery',
'exchange_type': 'direct',
'routing_key': 'celery'}
CELERY_ROUTES = (GhettoRouter(), )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment