Skip to content

Commit ea41901

Browse files
committed
fix: don't give a grace wall clock period for the rest requests in oneshot policy
1 parent 666a771 commit ea41901

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/base/src/rt_worker/supervisor/strategy_per_request.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ pub async fn supervise(args: Arguments, oneshot: bool) -> (ShutdownReason, i64)
145145
}
146146

147147
_ = &mut wall_clock_duration_alert => {
148-
if req_ack_count != demand.load(Ordering::Acquire) {
148+
if !oneshot && req_ack_count != demand.load(Ordering::Acquire) {
149149
wall_clock_duration_alert
150150
.as_mut()
151151
.reset(Instant::now() + wall_clock_duration);

0 commit comments

Comments
 (0)