Pause schedule for debug jobs

This commit is contained in:
Lennart Kats 2023-06-20 11:21:33 +02:00
parent bdd21246e6
commit 7c654ec417
1 changed files with 9 additions and 0 deletions

View File

@ -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 {