You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tooling.apache.org by sb...@apache.org on 2025/03/17 21:07:54 UTC
(tooling-trusted-release) branch main updated: Make the worker manager more optimistic about the state of workers
This is an automated email from the ASF dual-hosted git repository.
sbp pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tooling-trusted-release.git
The following commit(s) were added to refs/heads/main by this push:
new da28732 Make the worker manager more optimistic about the state of workers
da28732 is described below
commit da28732fea38ff58fa2c3a7e7473243c6aec24a1
Author: Sean B. Palmer <se...@miscoranda.com>
AuthorDate: Mon Mar 17 23:07:29 2025 +0200
Make the worker manager more optimistic about the state of workers
---
atr/manager.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/atr/manager.py b/atr/manager.py
index c9b6810..086a094 100644
--- a/atr/manager.py
+++ b/atr/manager.py
@@ -311,8 +311,8 @@ class WorkerManager:
return False
except Exception as e:
_LOGGER.error(f"Error checking task duration for worker {pid}: {e}")
- # TODO: Return True? False? Maybe None would be more suitable, or propagate the error
- return True
+ # TODO: Return False here to avoid over-reporting errors
+ return False
async def maintain_worker_pool(self) -> None:
"""Ensure we maintain the minimum number of workers."""
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@tooling.apache.org
For additional commands, e-mail: commits-help@tooling.apache.org