Skip to content

Commit 159fc1d

Browse files
authored
fix(supervisor): do not try to divide 0 by 2 (#607)
1 parent 7c9d8da commit 159fc1d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/base/src/worker/supervisor/strategy_per_worker.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ pub async fn supervise(args: Arguments) -> (ShutdownReason, i64) {
188188
worker_timeout_ms
189189
};
190190

191-
let wall_clock_duration = Duration::from_millis(worker_timeout_ms);
191+
let wall_clock_duration = Duration::from_millis(wall_clock_limit_ms);
192192

193193
// Split wall clock duration into 2 intervals.
194194
// At the first interval, we will send a msg to retire the worker.

0 commit comments

Comments
 (0)