Skip to content

Commit

Permalink
Found more places where WorkerType could be specified
Browse files Browse the repository at this point in the history
  • Loading branch information
Souf149 committed Dec 19, 2024
1 parent 1742ff0 commit 1fcd593
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions boefjes/boefjes/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def __init__(

self.exited = False

def run(self, queue_type: str) -> None:
def run(self, queue_type: WorkerManager.WorkerType) -> None:
logger.info("Created worker pool for queue '%s'", queue_type)

self.workers = [
Expand Down Expand Up @@ -80,7 +80,7 @@ def run(self, queue_type: str) -> None:

raise

def _fill_queue(self, task_queue: Queue, queue_type: str) -> None:
def _fill_queue(self, task_queue: Queue, queue_type: WorkerManager.WorkerType) -> None:
if task_queue.qsize() > self.settings.pool_size:
time.sleep(self.settings.worker_heartbeat)
return
Expand Down

0 comments on commit 1fcd593

Please sign in to comment.