Skip to content

Commit 6711354

Browse files
authored
openhcl servicing: decrease flush logs timeout (#1385) (#1411)
Reduces the timeout for flushing logs during servicing to reduce blackout time if there is some issue with flushing the logs.
1 parent eb93e11 commit 6711354

File tree

1 file changed

+2
-2
lines changed
  • openhcl/underhill_core/src/dispatch

1 file changed

+2
-2
lines changed

openhcl/underhill_core/src/dispatch/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -563,10 +563,10 @@ impl LoadedVm {
563563
// Tell the initial process to flush all logs. Any logs
564564
// emitted after this point may be lost.
565565
state.init_state.flush_logs_result = Some({
566-
// Only wait up to a second (which is still
566+
// Only wait up to a half second (which is still
567567
// a long time!) to prevent delays from
568568
// introducing longer blackouts.
569-
let ctx = CancelContext::new().with_timeout(Duration::from_secs(1));
569+
let ctx = CancelContext::new().with_timeout(Duration::from_millis(500));
570570

571571
let now = std::time::Instant::now();
572572
let call = self

0 commit comments

Comments
 (0)