Skip to content

Commit 50b2eba

Browse files
task runner still needs to run upon interrupt
1 parent 215b2a7 commit 50b2eba

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

pmond/god/god.go

-7
Original file line numberDiff line numberDiff line change
@@ -114,9 +114,6 @@ func runMonitor() {
114114
timer := time.NewTicker(time.Millisecond * 500)
115115
for {
116116
<-timer.C
117-
if !uninterrupted {
118-
break
119-
}
120117
runningTask(isInitializing)
121118
}
122119
}
@@ -125,10 +122,6 @@ var pendingTask sync.Map
125122

126123
func runningTask(isInitializing bool) {
127124

128-
if !uninterrupted {
129-
return
130-
}
131-
132125
var all []model.Process
133126
err := pmond.Db().Find(&all, "status in (?, ?, ?, ?)",
134127
model.StatusRunning,

0 commit comments

Comments
 (0)