Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions src/execution/scheduler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -192,8 +192,10 @@ impl Scheduler {
) -> Result<Self> {
let max_workers = log_capture.slot_count();

// Set read timeout on result socket for crash detection
result_socket.set_read_timeout(Some(Duration::from_secs(5)))?;
// Set read timeout on result socket for crash detection.
// 100ms keeps the scheduler responsive for TUI updates while still
// being efficient (the scheduler sleeps 50ms between iterations anyway).
result_socket.set_read_timeout(Some(Duration::from_millis(100)))?;

// Set read timeout on cmd socket to prevent indefinite hang if Zygote crashes
cmd_socket.set_read_timeout(Some(Duration::from_secs(10)))?;
Expand Down
3 changes: 3 additions & 0 deletions src/reporting/reporter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ use crate::config::TracebackStyle;
use serde::Serialize;
use std::collections::{HashMap, HashSet};
use std::io::IsTerminal;
use std::time::Duration;

// Re-export TracebackStyle for convenience
pub use crate::config::TracebackStyle as TbStyle;
Expand Down Expand Up @@ -681,6 +682,7 @@ impl ProgressReporter {
.unwrap_or_else(|_| ProgressStyle::default_bar())
.progress_chars("=>-"),
);
bar.enable_steady_tick(Duration::from_millis(100));

Self {
bar,
Expand Down Expand Up @@ -1040,6 +1042,7 @@ impl TachReporter {
.template("{spinner:.green} {msg}")
.expect("invalid spinner template"),
);
bar.enable_steady_tick(Duration::from_millis(100));
Self {
bar,
file_results: HashMap::new(),
Expand Down