From 5bb9d414a21b7c5cc64ae6b8e18fd4c6a4f43402 Mon Sep 17 00:00:00 2001 From: Sanne Raymaekers Date: Thu, 21 Sep 2023 12:08:28 +0200 Subject: [PATCH] templates/compose: add startingDeadlineSeconds to maintenance job The job won't run if it doesn't get scheduled within 30 minutes. This prevents the job running multiple times in a row if it didn't get scheduled, for instance due to resource limits. --- templates/composer.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/templates/composer.yml b/templates/composer.yml index 8417f360c..033ab4545 100644 --- a/templates/composer.yml +++ b/templates/composer.yml @@ -307,6 +307,8 @@ objects: # run maintenance job at midnight schedule: 0 0 * * * concurrencyPolicy: Forbid + # don't run if the job doesn't get scheduled within 30 minutes + startingDeadlineSeconds: 1800 jobTemplate: spec: template: