@@ -33,43 +33,33 @@ class Config(object):
3333 task_routes = {
3434 'helmbroker.tasks.provision' : {
3535 'queue' : 'helmbroker.high' ,
36- 'exchange' : 'helmbroker.priority' ,
37- 'routing_key' : 'helmbroker.priority.high' ,
36+ 'exchange' : 'helmbroker.priority' , 'routing_key' : 'helmbroker.priority.high' ,
3837 },
3938 'helmbroker.tasks.update' : {
4039 'queue' : 'helmbroker.high' ,
41- 'exchange' : 'helmbroker.priority' ,
42- 'routing_key' : 'helmbroker.priority.high' ,
40+ 'exchange' : 'helmbroker.priority' , 'routing_key' : 'helmbroker.priority.high' ,
4341 },
4442 'helmbroker.tasks.bind' : {
4543 'queue' : 'helmbroker.high' ,
46- 'exchange' : 'helmbroker.priority' ,
47- 'routing_key' : 'helmbroker.priority.high' ,
44+ 'exchange' : 'helmbroker.priority' , 'routing_key' : 'helmbroker.priority.high' ,
4845 },
4946 'helmbroker.tasks.deprovision' : {
5047 'queue' : 'helmbroker.middle' ,
51- 'exchange' : 'helmbroker.priority' ,
52- 'routing_key' : 'helmbroker.priority.middle' ,
48+ 'exchange' : 'helmbroker.priority' , 'routing_key' : 'helmbroker.priority.middle' ,
5349 },
5450 },
5551 task_queues = (
5652 Queue (
57- 'helmbroker.low' ,
58- exchange = Exchange ('helmbroker.priority' , type = "direct" ),
59- routing_key = 'helmbroker.priority.low' ,
60- queue_arguments = {'x-max-priority' : 16 },
53+ 'helmbroker.low' , exchange = Exchange ('helmbroker.priority' , type = "direct" ),
54+ routing_key = 'helmbroker.priority.low' , queue_arguments = {'x-queue-type' : 'quorum' },
6155 ),
6256 Queue (
63- 'helmbroker.high' ,
64- exchange = Exchange ('helmbroker.priority' , type = "direct" ),
65- routing_key = 'helmbroker.priority.high' ,
66- queue_arguments = {'x-max-priority' : 64 },
57+ 'helmbroker.high' , exchange = Exchange ('helmbroker.priority' , type = "direct" ),
58+ routing_key = 'helmbroker.priority.high' , queue_arguments = {'x-queue-type' : 'quorum' },
6759 ),
6860 Queue (
69- 'helmbroker.middle' ,
70- exchange = Exchange ('helmbroker.priority' , type = "direct" ),
71- routing_key = 'helmbroker.priority.middle' ,
72- queue_arguments = {'x-max-priority' : 32 },
61+ 'helmbroker.middle' , exchange = Exchange ('helmbroker.priority' , type = "direct" ),
62+ routing_key = 'helmbroker.priority.middle' , queue_arguments = {'x-queue-type' : 'quorum' },
7363 ),
7464 ),
7565)
0 commit comments