From 7c654ec41728df66c1c405892011afa48a19ecd1 Mon Sep 17 00:00:00 2001 From: Lennart Kats Date: Tue, 20 Jun 2023 11:21:33 +0200 Subject: [PATCH] Pause schedule for debug jobs --- bundle/config/mutator/process_environment_mode.go | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/bundle/config/mutator/process_environment_mode.go b/bundle/config/mutator/process_environment_mode.go index c849c4d57..cd2510acd 100644 --- a/bundle/config/mutator/process_environment_mode.go +++ b/bundle/config/mutator/process_environment_mode.go @@ -36,6 +36,15 @@ func processDebugMode(b *bundle.Bundle) error { if r.Jobs[i].MaxConcurrentRuns == 0 { r.Jobs[i].MaxConcurrentRuns = debugConcurrentRuns } + if r.Jobs[i].Schedule != nil { + r.Jobs[i].Schedule.PauseStatus = "PAUSED" + } + if r.Jobs[i].Continuous != nil { + r.Jobs[i].Continuous.PauseStatus = "PAUSED" + } + if r.Jobs[i].Trigger != nil { + r.Jobs[i].Trigger.PauseStatus = "PAUSED" + } } for i := range r.Pipelines {