From 73f577a49a0b20716d1951e0d39d2e4b7521bf31 Mon Sep 17 00:00:00 2001 From: Brad Stein Date: Wed, 31 Dec 2025 17:33:20 -0300 Subject: [PATCH] communication: make suspended cronjobs fail-fast --- services/communication/guest-name-job.yaml | 3 ++- services/communication/pin-othrys-job.yaml | 3 ++- services/communication/seed-othrys-room.yaml | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/services/communication/guest-name-job.yaml b/services/communication/guest-name-job.yaml index a576e18..f6f1469 100644 --- a/services/communication/guest-name-job.yaml +++ b/services/communication/guest-name-job.yaml @@ -9,9 +9,10 @@ spec: suspend: true jobTemplate: spec: + backoffLimit: 0 template: spec: - restartPolicy: OnFailure + restartPolicy: Never containers: - name: rename image: python:3.11-slim diff --git a/services/communication/pin-othrys-job.yaml b/services/communication/pin-othrys-job.yaml index a86270c..a03e43d 100644 --- a/services/communication/pin-othrys-job.yaml +++ b/services/communication/pin-othrys-job.yaml @@ -12,9 +12,10 @@ spec: failedJobsHistoryLimit: 1 jobTemplate: spec: + backoffLimit: 0 template: spec: - restartPolicy: OnFailure + restartPolicy: Never containers: - name: pin image: python:3.11-slim diff --git a/services/communication/seed-othrys-room.yaml b/services/communication/seed-othrys-room.yaml index 6b115d3..09dc1e8 100644 --- a/services/communication/seed-othrys-room.yaml +++ b/services/communication/seed-othrys-room.yaml @@ -10,9 +10,10 @@ spec: concurrencyPolicy: Forbid jobTemplate: spec: + backoffLimit: 0 template: spec: - restartPolicy: OnFailure + restartPolicy: Never containers: - name: seed image: python:3.11-slim