routines: Fix routines never restarting
This commit is contained in:
parent
9425f1b3a9
commit
55904642d0
@ -148,8 +148,8 @@ func (this *Manager) runRoutine (routine Routine, group *sync.WaitGroup) {
|
|||||||
} else {
|
} else {
|
||||||
this.log("XXX routine failed:", err)
|
this.log("XXX routine failed:", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
if time.Since(lastStart) < this.RestartDeadline {
|
if time.Since(lastStart) < restartDeadline {
|
||||||
this.log("!!! not restarting routine, failed too soon")
|
this.log("!!! not restarting routine, failed too soon")
|
||||||
break
|
break
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user