Skip to content

Commit

Permalink
fix: set the iteration values in tasks (#96)
Browse files Browse the repository at this point in the history
  • Loading branch information
shreddedbacon authored Aug 25, 2022
1 parent 68027ce commit 55a8401
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmd/tasks_run.go
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,9 @@ type iterateTaskFuncType func(tasklib.TaskEnvironment, []lagoon.Task) (bool, err
func iterateTaskGenerator(allowDeployMissingErrors bool, taskRunner runTaskInEnvironmentFuncType, buildValues generator.BuildValues) iterateTaskFuncType {
return func(lagoonConditionalEvaluationEnvironment tasklib.TaskEnvironment, tasks []lagoon.Task) (bool, error) {
for _, task := range tasks {
// set the iterations and wait times here
task.ScaleMaxIterations = buildValues.TaskScaleMaxIterations
task.ScaleWaitTime = buildValues.TaskScaleWaitTime
runTask, err := evaluateWhenConditionsForTaskInEnvironment(lagoonConditionalEvaluationEnvironment, task)
if err != nil {
return true, err
Expand Down

0 comments on commit 55a8401

Please sign in to comment.