fix(immich): ML pull kill after 10 minutes

This commit is contained in:
JJGadgets
2024-08-24 18:05:32 +08:00
parent 4a531f5b60
commit 7209dfad43

View File

@@ -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