Skip to content

Commit

Permalink
fix: create manager event routing in case the TM is not started
Browse files Browse the repository at this point in the history
  • Loading branch information
ClemDoum committed Oct 15, 2024
1 parent b97a601 commit c7002ac
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions icij-worker/icij_worker/worker/amqp.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,9 @@ async def _aenter__(self):
await self._exit_stack.enter_async_context(self._channel)
await self._bind_task_queue()
await self._bind_worker_event_queue()
await self._create_routing(
self.manager_evt_routing(), declare_queues=True, declare_exchanges=True
)

async def _aexit__(self, exc_type, exc_val, exc_tb):
event_transient_queue = await self._channel.get_queue(
Expand Down

0 comments on commit c7002ac

Please sign in to comment.