Skip to content

Commit

Permalink
fix: requeue not delete the considererd Task flag (#8194)
Browse files Browse the repository at this point in the history
Signed-off-by: maybaby <berlinsaint@126.com>
  • Loading branch information
whybeyoung authored and alexec committed May 3, 2022
1 parent d199882 commit b0d8be2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions workflow/executor/agent.go
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ func (ae *AgentExecutor) taskWorker(ctx context.Context, taskQueue chan task, re
}
if requeue > 0 {
time.AfterFunc(requeue, func() {
delete(ae.consideredTasks, nodeID)
taskQueue <- task
})
}
Expand Down

0 comments on commit b0d8be2

Please sign in to comment.