From 5d13843a99f6b368a4be37695babe39414630c7e Mon Sep 17 00:00:00 2001 From: migatu Date: Sun, 2 Aug 2026 22:11:05 +0200 Subject: [PATCH] conjurer: give librarian 60s termination grace for checkpointing The librarian now checkpoints an in-progress search on SIGTERM and exits within CONJURER_LIBRARIAN_GRACEFUL_TIMEOUT (default 45s). Raise k8s terminationGracePeriodSeconds to 60 so that graceful checkpoint isn't cut short by SIGKILL - otherwise the long DB scan restarts instead of resuming. Co-Authored-By: Claude Opus 4.8 --- conjurer/librarian.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/conjurer/librarian.yaml b/conjurer/librarian.yaml index 5dd317b..32a0685 100644 --- a/conjurer/librarian.yaml +++ b/conjurer/librarian.yaml @@ -10,6 +10,11 @@ spec: metadata: { labels: { app: librarian } } spec: imagePullSecrets: [{ name: gitea-registry }] + # On SIGTERM the librarian checkpoints the running search and exits within + # CONJURER_LIBRARIAN_GRACEFUL_TIMEOUT (default 45s). Give k8s enough grace + # to let that finish before it SIGKILLs - otherwise a long scan's checkpoint + # is cut short and the search restarts from scratch instead of resuming. + terminationGracePeriodSeconds: 60 containers: - name: librarian image: gitea.czernobog.pl/gitea/conjurer-librarian:e243777e