Skip to content

Commit

Permalink
set success result for generate_* tasks once the first action has bee…
Browse files Browse the repository at this point in the history
…n sent
  • Loading branch information
pk910 committed Feb 5, 2024
1 parent f7d640f commit 83b48f4
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions pkg/coordinator/tasks/generate_bls_changes/task.go
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ func (t *Task) Execute(ctx context.Context) error {
if err != nil {
t.logger.Errorf("error generating bls change: %v", err.Error())
} else {
t.ctx.SetResult(types.TaskResultSuccess)
perSlotCount++
totalCount++
}
Expand Down
1 change: 1 addition & 0 deletions pkg/coordinator/tasks/generate_deposits/task.go
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ func (t *Task) Execute(ctx context.Context) error {
if err != nil {
t.logger.Errorf("error generating deposit: %v", err.Error())
} else {
t.ctx.SetResult(types.TaskResultSuccess)
perSlotCount++
totalCount++
}
Expand Down
1 change: 1 addition & 0 deletions pkg/coordinator/tasks/generate_exits/task.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ func (t *Task) Execute(ctx context.Context) error {
if err != nil {
t.logger.Errorf("error generating voluntary exit: %v", err.Error())
} else {
t.ctx.SetResult(types.TaskResultSuccess)
perSlotCount++
totalCount++
}
Expand Down
1 change: 1 addition & 0 deletions pkg/coordinator/tasks/generate_slashings/task.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ func (t *Task) Execute(ctx context.Context) error {
if err != nil {
t.logger.Errorf("error generating slashing: %v", err.Error())
} else {
t.ctx.SetResult(types.TaskResultSuccess)
perSlotCount++
totalCount++
}
Expand Down

0 comments on commit 83b48f4

Please sign in to comment.