From 1e1b6be8ea98f0949d3d479f58332d2e42cf99ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Munsch?= Date: Wed, 5 Jun 2024 10:56:17 +0200 Subject: [PATCH 1/2] chore: add resource limit to manifest.yaml --- manifest.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/manifest.yaml b/manifest.yaml index 6dd5694..f695104 100644 --- a/manifest.yaml +++ b/manifest.yaml @@ -188,6 +188,10 @@ spec: containers: - name: ${CI_PROJECT_PATH_SLUG}-queue-worker image: $IMAGE_TAG + resources: + limits: + memory: 512Mi + cpu: "1" command: - "bash" args: From e57c36ca8bc94355bed92011915621c26638b40c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Munsch?= Date: Wed, 5 Jun 2024 10:58:24 +0200 Subject: [PATCH 2/2] chore: :bricks: k8s-queues.sh: fix stopQueues sleep timer --- k8s-queues.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/k8s-queues.sh b/k8s-queues.sh index f3e6c55..1f9250a 100644 --- a/k8s-queues.sh +++ b/k8s-queues.sh @@ -8,7 +8,7 @@ function stopQueues() { echo "Stopping queues..." work=false php artisan queue:restart - sleep 300 + sleep 45s exit 0 }