From 90d3d23830e9ea1941f693e297243b58065e5fba Mon Sep 17 00:00:00 2001 From: 0xFEEDC0DE64 Date: Sun, 11 Oct 2026 16:16:50 +0200 Subject: [PATCH] Keep Paperless OCR alive during storage stalls --- app.yaml | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/app.yaml b/app.yaml index 73b36c5..3a95399 100644 --- a/app.yaml +++ b/app.yaml @@ -112,10 +112,18 @@ spec: timeoutSeconds: 10 failureThreshold: 6 livenessProbe: - httpGet: {path: /, port: http} - periodSeconds: 30 - timeoutSeconds: 10 - failureThreshold: 6 + exec: + command: + - sh + - -ec + - | + for service in svc-worker svc-webserver svc-consumer svc-scheduler; do + pid="$(s6-svstat -o pid "/run/service/$service")" + [ "$pid" -gt 0 ] + done + periodSeconds: 60 + timeoutSeconds: 30 + failureThreshold: 30 resources: requests: {cpu: 100m, memory: 1Gi} volumes: