Skip to content

Commit

Permalink
fix: missing kill_workers
Browse files Browse the repository at this point in the history
  • Loading branch information
MehmedGIT committed Jan 16, 2025
1 parent ec080af commit 0467d4b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/broker/operandi_broker/broker.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,3 +92,6 @@ def create_worker_process(self, queue_name, worker_type: str) -> None:
self.log.info(f"Assigning a new worker process with pid: {child_pid}, to queue: {queue_name}")
# append the pid to the workers list of the queue_name
(self.queues_and_workers[queue_name]).append(child_pid)

def kill_workers(self):
kill_workers(self.log, self.queues_and_workers)

0 comments on commit 0467d4b

Please sign in to comment.