From 7209dfad43e8fccb6ff29ea25d6e9f588bf8cc16 Mon Sep 17 00:00:00 2001 From: JJGadgets Date: Sat, 24 Aug 2024 18:05:32 +0800 Subject: [PATCH] fix(immich): ML pull kill after 10 minutes --- kube/deploy/apps/immich/app/hr.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kube/deploy/apps/immich/app/hr.yaml b/kube/deploy/apps/immich/app/hr.yaml index 098042de..0408867c 100644 --- a/kube/deploy/apps/immich/app/hr.yaml +++ b/kube/deploy/apps/immich/app/hr.yaml @@ -152,8 +152,9 @@ spec: image: repository: ghcr.io/immich-app/immich-machine-learning tag: v1.112.1@sha256:9600eff5a66ae426293f00b171711bc1647c85cf966d759ee08ab2d05e0580b5 + command: ["/tini", "--"] + args: ["/bin/sh", "-c", "tini -s -g -- /bin/sh -c 'exec ./start.sh' & read -t 600 || kill -SIGINT $!"] # run for 10 minutes to pull models via preload, then kill process, hopefully it doesn't crash env: - #<<: *env # default models as of v1.112.1 MACHINE_LEARNING_PRELOAD__CLIP: ViT-B-32__openai MACHINE_LEARNING_PRELOAD__FACIAL_RECOGNITION: buffalo_l