From 00884cae503966768ebcdf1d210c6045793b5bd3 Mon Sep 17 00:00:00 2001 From: Liam Lloyd-Tucker Date: Tue, 3 Mar 2026 09:41:26 -0800 Subject: [PATCH] Increase shutdown timeout for MCPClient Currently, when we shut down an MCPClient, its workers get 100 ms to finish their jobs before shutting down. Some of the jobs MCPClients do take considerably longer than that. To avoid errors caused by ungraceful shutdowns, this commit increases that timeout to 30 seconds. --- src/archivematica/MCPClient/client/pool.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/archivematica/MCPClient/client/pool.py b/src/archivematica/MCPClient/client/pool.py index a57d52d0ae..17266496cf 100644 --- a/src/archivematica/MCPClient/client/pool.py +++ b/src/archivematica/MCPClient/client/pool.py @@ -144,7 +144,7 @@ def stop(self) -> None: for worker in self.workers: if worker.is_alive(): - worker.join(0.1) + worker.join(30) for worker in self.workers: if worker.is_alive():