Skip to content

Commit

Permalink
(minor) Fix WorkerPool.status never set to STARTED (#2177)
Browse files Browse the repository at this point in the history
  • Loading branch information
taleinat authored Jan 19, 2025
1 parent 98be6af commit 84e7cec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rq/worker_pool.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ def start(self, burst: bool = False, logging_level: str = 'INFO'):
respawn = not burst # Don't respawn workers if burst mode is on
setup_loghandlers(logging_level, DEFAULT_LOGGING_DATE_FORMAT, DEFAULT_LOGGING_FORMAT, name=__name__)
self.log.info(f'Starting worker pool {self.name} with pid %d...', os.getpid())
self.status = self.Status.IDLE
self.status = self.Status.STARTED
self.start_workers(burst=self._burst, logging_level=logging_level)
self._install_signal_handlers()
while True:
Expand Down

0 comments on commit 84e7cec

Please sign in to comment.