Add more logging for num workers in simple job client

This commit is contained in:
Weves 2024-06-27 11:48:12 -07:00 committed by Chris Weaver
parent 5764cdd469
commit 91c9b2eb42

View File

@ -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