Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
task
Manage
Activity
Members
Labels
Plan
Issues
2
Issue boards
Milestones
Wiki
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Gaia-X
Trust Services API
task
Commits
46943a9a
Commit
46943a9a
authored
2 years ago
by
Yordan Kinkov
Browse files
Options
Downloads
Patches
Plain Diff
#13
task list executor function fix
parent
5bddb39d
No related branches found
No related tags found
1 merge request
!8
Sequential Task List executor
Pipeline
#51139
failed with stage
in 29 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
docs/new.json
+0
-22
0 additions, 22 deletions
docs/new.json
internal/listexecutor/listexecutor.go
+3
-4
3 additions, 4 deletions
internal/listexecutor/listexecutor.go
with
3 additions
and
26 deletions
docs/new.json
deleted
100644 → 0
+
0
−
22
View file @
5bddb39d
{
"name"
:
"example"
,
"cacheNamespace"
:
"login"
,
"cacheScope"
:
"user"
,
"groups"
:
[
{
"execution"
:
"sequential"
,
"tasks"
:
[
"task1"
,
"task2"
]
},
{
"execution"
:
"parallel"
,
"tasks"
:
[
"task3"
,
"task4"
,
"task5"
]
}
]
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
internal/listexecutor/listexecutor.go
+
3
−
4
View file @
46943a9a
...
...
@@ -123,13 +123,12 @@ func (l *ListExecutor) Execute(ctx context.Context, list *tasklist.TaskList) {
list
.
StartTime
=
time
.
Now
()
// execute groups sequentially
for
i
,
group
:=
range
list
.
Groups
{
if
err
:=
l
.
executeGroup
(
ctx
,
&
group
);
err
!=
nil
{
for
i
,
_
:=
range
list
.
Groups
{
if
err
:=
l
.
executeGroup
(
ctx
,
&
list
.
Groups
[
i
]
);
err
!=
nil
{
logger
.
Error
(
"error executing group"
,
zap
.
Error
(
err
))
group
.
State
=
taskpkg
.
Failed
list
.
Groups
[
i
]
.
State
=
taskpkg
.
Failed
list
.
State
=
taskpkg
.
Failed
}
list
.
Groups
[
i
]
=
group
}
if
list
.
State
!=
taskpkg
.
Failed
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment