From 9b5404827e1976a326a9a1510a712b8c1f4e7be5 Mon Sep 17 00:00:00 2001 From: Paul Bennett Date: Fri, 12 Jul 2024 19:07:20 +0100 Subject: [PATCH] trying ttl --- kubernetes/workflows/hello-world.yaml | 4 ++++ kubernetes/workflows/py-test.yaml | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/kubernetes/workflows/hello-world.yaml b/kubernetes/workflows/hello-world.yaml index 5392d0b2..a9d97550 100644 --- a/kubernetes/workflows/hello-world.yaml +++ b/kubernetes/workflows/hello-world.yaml @@ -10,6 +10,10 @@ spec: successfulJobsHistoryLimit: 4 # Default 3 failedJobsHistoryLimit: 4 # Default 1 suspend: false # Set to "true" to suspend scheduling + ttlStrategy: + secondsAfterCompletion: 10 # Time to live after workflow is completed, replaces ttlSecondsAfterFinished + secondsAfterSuccess: 5 # Time to live after workflow is successful + secondsAfterFailure: 5 # Time to live after workflow fails workflowSpec: entrypoint: whalesay templates: diff --git a/kubernetes/workflows/py-test.yaml b/kubernetes/workflows/py-test.yaml index 99074c63..79b8fff1 100644 --- a/kubernetes/workflows/py-test.yaml +++ b/kubernetes/workflows/py-test.yaml @@ -10,6 +10,10 @@ spec: successfulJobsHistoryLimit: 4 # Default 3 failedJobsHistoryLimit: 4 # Default 1 suspend: false # Set to "true" to suspend scheduling + ttlStrategy: + secondsAfterCompletion: 10 # Time to live after workflow is completed, replaces ttlSecondsAfterFinished + secondsAfterSuccess: 5 # Time to live after workflow is successful + secondsAfterFailure: 5 # Time to live after workflow fails workflowSpec: entrypoint: py-test templates: