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 <noreply@anthropic.com>
This commit was merged in pull request #10.
This commit is contained in:
2026-08-02 22:11:05 +02:00
committed by gitea
parent 87048cdbc4
commit a7cab0acd7
+5
View File
@@ -10,6 +10,11 @@ spec:
metadata: { labels: { app: librarian } } metadata: { labels: { app: librarian } }
spec: spec:
imagePullSecrets: [{ name: gitea-registry }] 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: containers:
- name: librarian - name: librarian
image: gitea.czernobog.pl/gitea/conjurer-librarian:e243777e image: gitea.czernobog.pl/gitea/conjurer-librarian:e243777e