Skip to content
Snippets Groups Projects
Commit 5fefbeaf authored by Yordan Kinkov's avatar Yordan Kinkov
Browse files

#13 task list executor function fix

parent 46943a9a
Branches
Tags
1 merge request!8Sequential Task List executor
Pipeline #51140 passed
...@@ -123,7 +123,7 @@ func (l *ListExecutor) Execute(ctx context.Context, list *tasklist.TaskList) { ...@@ -123,7 +123,7 @@ func (l *ListExecutor) Execute(ctx context.Context, list *tasklist.TaskList) {
list.StartTime = time.Now() list.StartTime = time.Now()
// execute groups sequentially // execute groups sequentially
for i, _ := range list.Groups { for i := range list.Groups {
if err := l.executeGroup(ctx, &list.Groups[i]); err != nil { if err := l.executeGroup(ctx, &list.Groups[i]); err != nil {
logger.Error("error executing group", zap.Error(err)) logger.Error("error executing group", zap.Error(err))
list.Groups[i].State = taskpkg.Failed list.Groups[i].State = taskpkg.Failed
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment