Jan Dittberner
95c6c9c516
git-subtree-dir: gvaweb/gvacommon git-subtree-mainline:a12ad124b6
git-subtree-split:d31c1d0fbf
16 lines
431 B
Python
16 lines
431 B
Python
# -*- coding: utf-8 -*-
|
|
from __future__ import unicode_literals
|
|
|
|
|
|
class GvaRouter(object):
|
|
|
|
def route_for_task(self, task, args=None, kwargs=None):
|
|
for route in ['ldap', 'file', 'mysql', 'pgsql', 'web']:
|
|
if route in task:
|
|
return {
|
|
'exchange': route,
|
|
'exchange_type': 'direct',
|
|
'queue': route,
|
|
}
|
|
return None
|