From fd0f14fc9c32b5d187728fadef0a8e478bbab3bd Mon Sep 17 00:00:00 2001 From: Vincent BRIDIER Date: Fri, 7 Jun 2024 13:16:47 +0000 Subject: [PATCH] fix queue worker manifest --- manifest.yaml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/manifest.yaml b/manifest.yaml index bb0e6f1..5d7fca1 100644 --- a/manifest.yaml +++ b/manifest.yaml @@ -188,6 +188,10 @@ spec: containers: - name: ${CI_PROJECT_PATH_SLUG}-queue-worker image: $IMAGE_TAG + lifecycle: + preStop: + exec: + command: ["/bin/sh","-c","kill -s TERM 1; while test $(ps ax | grep -v grep | grep bash | wc -l) -gt 0; do sleep 2s; done"] resources: limits: memory: 512Mi @@ -196,9 +200,6 @@ spec: - "bash" args: - "k8s-queues.sh" - preStop: - exec: - command: ["/bin/sh","-c","kill -s TERM 1; while test $(ps ax | grep -v grep | grep bash | wc -l) -gt 0; do sleep 2s; done"] envFrom: - configMapRef: name: ${CI_PROJECT_PATH_SLUG}-config-map