From 91c9b2eb4299785ee774e177acdbc40a0db6cb6e Mon Sep 17 00:00:00 2001 From: Weves Date: Thu, 27 Jun 2024 11:48:12 -0700 Subject: [PATCH] Add more logging for num workers in simple job client --- backend/danswer/background/indexing/job_client.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/backend/danswer/background/indexing/job_client.py b/backend/danswer/background/indexing/job_client.py index e9ddad58e..72919d690 100644 --- a/backend/danswer/background/indexing/job_client.py +++ b/backend/danswer/background/indexing/job_client.py @@ -105,7 +105,9 @@ class SimpleJobClient: """NOTE: `pure` arg is needed so this can be a drop in replacement for Dask""" self._cleanup_completed_jobs() 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 job_id = self.job_id_counter