|
23 | 23 | from __future__ import absolute_import |
24 | 24 |
|
25 | 25 | from kombu import Queue |
26 | | -from oslo_config import cfg |
27 | 26 |
|
28 | 27 | from st2common.constants import action as action_constants |
29 | 28 | from st2common.transport import actionalias |
|
56 | 55 |
|
57 | 56 | # Used by the action scheduler service |
58 | 57 | ACTIONSCHEDULER_REQUEST_QUEUE = liveaction.get_status_management_queue( |
59 | | - f"{cfg.CONF.messaging.prefix}.actionrunner.req", |
| 58 | + "st2.actionrunner.req", |
60 | 59 | routing_key=action_constants.LIVEACTION_STATUS_REQUESTED, |
61 | 60 | ) |
62 | 61 |
|
63 | 62 |
|
64 | 63 | # Used by the action runner service |
65 | 64 | ACTIONRUNNER_WORK_QUEUE = liveaction.get_status_management_queue( |
66 | | - f"{cfg.CONF.messaging.prefix}.actionrunner.work", |
| 65 | + "st2.actionrunner.work", |
67 | 66 | routing_key=action_constants.LIVEACTION_STATUS_SCHEDULED, |
68 | 67 | ) |
69 | 68 |
|
70 | 69 | ACTIONRUNNER_CANCEL_QUEUE = liveaction.get_status_management_queue( |
71 | | - f"{cfg.CONF.messaging.prefix}.actionrunner.cancel", |
| 70 | + "st2.actionrunner.cancel", |
72 | 71 | routing_key=action_constants.LIVEACTION_STATUS_CANCELING, |
73 | 72 | ) |
74 | 73 |
|
75 | 74 | ACTIONRUNNER_PAUSE_QUEUE = liveaction.get_status_management_queue( |
76 | | - f"{cfg.CONF.messaging.prefix}.actionrunner.pause", |
| 75 | + "st2.actionrunner.pause", |
77 | 76 | routing_key=action_constants.LIVEACTION_STATUS_PAUSING, |
78 | 77 | ) |
79 | 78 |
|
80 | 79 | ACTIONRUNNER_RESUME_QUEUE = liveaction.get_status_management_queue( |
81 | | - f"{cfg.CONF.messaging.prefix}.actionrunner.resume", |
| 80 | + "st2.actionrunner.resume", |
82 | 81 | routing_key=action_constants.LIVEACTION_STATUS_RESUMING, |
83 | 82 | ) |
84 | 83 |
|
85 | 84 |
|
86 | 85 | # Used by the notifier service |
87 | 86 | NOTIFIER_ACTIONUPDATE_WORK_QUEUE = execution.get_queue( |
88 | | - f"{cfg.CONF.messaging.prefix}.notifiers.execution.work", |
| 87 | + "st2.notifiers.execution.work", |
89 | 88 | routing_key=publishers.UPDATE_RK, |
90 | 89 | ) |
91 | 90 |
|
92 | 91 |
|
93 | 92 | # Used by the results tracker service |
94 | 93 | RESULTSTRACKER_ACTIONSTATE_WORK_QUEUE = actionexecutionstate.get_queue( |
95 | | - f"{cfg.CONF.messaging.prefix}.resultstracker.work", routing_key=publishers.CREATE_RK |
| 94 | + "st2.resultstracker.work", routing_key=publishers.CREATE_RK |
96 | 95 | ) |
97 | 96 |
|
98 | 97 |
|
99 | 98 | # Used by the rules engine service |
100 | 99 | RULESENGINE_WORK_QUEUE = reactor.get_trigger_instances_queue( |
101 | | - name=f"{cfg.CONF.messaging.prefix}.trigger_instances_dispatch.rules_engine", |
| 100 | + name="st2.trigger_instances_dispatch.rules_engine", |
102 | 101 | routing_key="#", |
103 | 102 | ) |
104 | 103 |
|
|
137 | 136 |
|
138 | 137 | # Used by the workflow engine service |
139 | 138 | WORKFLOW_EXECUTION_WORK_QUEUE = workflow.get_status_management_queue( |
140 | | - name=f"{cfg.CONF.messaging.prefix}.workflow.work", |
| 139 | + name="st2.workflow.work", |
141 | 140 | routing_key=action_constants.LIVEACTION_STATUS_REQUESTED, |
142 | 141 | ) |
143 | 142 |
|
144 | 143 | WORKFLOW_EXECUTION_RESUME_QUEUE = workflow.get_status_management_queue( |
145 | | - name=f"{cfg.CONF.messaging.prefix}.workflow.resume", |
| 144 | + name="st2.workflow.resume", |
146 | 145 | routing_key=action_constants.LIVEACTION_STATUS_RESUMING, |
147 | 146 | ) |
148 | 147 |
|
149 | 148 | WORKFLOW_ACTION_EXECUTION_UPDATE_QUEUE = execution.get_queue( |
150 | | - f"{cfg.CONF.messaging.prefix}.workflow.action.update", |
| 149 | + "st2.workflow.action.update", |
151 | 150 | routing_key=publishers.UPDATE_RK, |
152 | 151 | ) |
0 commit comments