This is an automated email from the ASF dual-hosted git repository.
tn 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 b312154 shutdown the database if the worker decides to stop running
by itself
b312154 is described below
commit b312154b72a384d885ea1eafcc1f99a3ee7482ad
Author: Thomas Neidhart <[email protected]>
AuthorDate: Tue Apr 1 17:54:35 2025 +0200
shutdown the database if the worker decides to stop running by itself
---
atr/worker.py | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/atr/worker.py b/atr/worker.py
index 9312437..ffc142c 100644
--- a/atr/worker.py
+++ b/atr/worker.py
@@ -87,6 +87,10 @@ def main() -> None:
asyncio.run(_start())
+ # If the worker decides to stop running (see #230 in _worker_loop_run()),
shutdown the database gracefully
+ asyncio.run(db.shutdown_database())
+ _LOGGER.info("Exiting worker process")
+
def _setup_logging() -> None:
# Configure logging
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]