Skip to content
This repository has been archived by the owner on Jun 15, 2023. It is now read-only.

Commit

Permalink
add log if cmd not called within DoneCmdThreshold
Browse files Browse the repository at this point in the history
  • Loading branch information
boypt committed Feb 1, 2021
1 parent df9d66c commit 1024770
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion engine/engine.go
Original file line number Diff line number Diff line change
Expand Up @@ -236,8 +236,10 @@ func (e *Engine) TaskRoutine() {
}

if time.Since(t.StartedAt) > e.doneThreshold && !t.Done {
// after 30s and task is not done yet, is ready for DoneCmd
// after threshold and task is not done yet, is ready for DoneCmd
t.IsDoneReady = true
} else {
log.Println("[DoneCmd] canceled within DoneCmdThreshold, the task is started at ", t.StartedAt)
}

continue
Expand Down

0 comments on commit 1024770

Please sign in to comment.