File tree 1 file changed +2
-1
lines changed
src/clj/backtype/storm/daemon
1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 226
226
; ; do this here so that the worker process dies if this fails
227
227
; ; it's important that worker heartbeat to supervisor ASAP when launching so that the supervisor knows it's running (and can move on)
228
228
_ (heartbeat-fn )
229
+ ; ; launch the heartbeat thread before tasks are loaded, so that slow-loading tasks don't cause the supervisor to kill the worker
230
+ _ (schedule-recurring (:heartbeat-timer worker) 0 (conf WORKER-HEARTBEAT-FREQUENCY-SECS) heartbeat-fn)
229
231
230
232
refresh-connections (mk-refresh-connections worker)
231
233
277
279
)]
278
280
(schedule-recurring (:refresh-connections-timer worker) 0 (conf TASK-REFRESH-POLL-SECS) refresh-connections)
279
281
(schedule-recurring (:refresh-active-timer worker) 0 (conf TASK-REFRESH-POLL-SECS) (partial refresh-storm-active worker))
280
- (schedule-recurring (:heartbeat-timer worker) 0 (conf WORKER-HEARTBEAT-FREQUENCY-SECS) heartbeat-fn)
281
282
282
283
(log-message " Worker has topology config " (:storm-conf worker))
283
284
(log-message " Worker " worker-id " for storm " storm-id " on " supervisor-id " :" port " has finished loading" )
You can’t perform that action at this time.
0 commit comments