mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-07-15 07:33:35 +02:00
Add more logging for num workers in simple job client
This commit is contained in:
@ -105,7 +105,9 @@ class SimpleJobClient:
|
|||||||
"""NOTE: `pure` arg is needed so this can be a drop in replacement for Dask"""
|
"""NOTE: `pure` arg is needed so this can be a drop in replacement for Dask"""
|
||||||
self._cleanup_completed_jobs()
|
self._cleanup_completed_jobs()
|
||||||
if len(self.jobs) >= self.n_workers:
|
if len(self.jobs) >= self.n_workers:
|
||||||
logger.debug("No available workers to run job")
|
logger.debug(
|
||||||
|
f"No available workers to run job. Currently running '{len(self.jobs)}' jobs, with a limit of '{self.n_workers}'."
|
||||||
|
)
|
||||||
return None
|
return None
|
||||||
|
|
||||||
job_id = self.job_id_counter
|
job_id = self.job_id_counter
|
||||||
|
Reference in New Issue
Block a user