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
5 changes: 4 additions & 1 deletion src/run/runner/wall_time/perf/fifo.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
use super::FifoCommand;
use anyhow::Context;
use runner_shared::fifo::{RUNNER_ACK_FIFO, RUNNER_CTL_FIFO};
use std::path::PathBuf;
use tokio::io::{AsyncReadExt, AsyncWriteExt};
Expand Down Expand Up @@ -52,7 +53,9 @@ impl RunnerFifo {
}
}

let decoded = bincode::deserialize(&buffer)?;
let decoded = bincode::deserialize(&buffer).with_context(|| {
format!("Failed to deserialize FIFO command (len: {message_len}, data: {buffer:?})")
})?;
Ok(decoded)
}

Expand Down
9 changes: 7 additions & 2 deletions src/run/runner/wall_time/perf/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -296,8 +296,13 @@ impl PerfRunner {
perf_ping_timeout = 1;

let result = tokio::time::timeout(Duration::from_secs(5), runner_fifo.recv_cmd()).await;
let Ok(Ok(cmd)) = result else {
continue;
let cmd = match result {
Ok(Ok(cmd)) => cmd,
Ok(Err(e)) => {
warn!("Failed to parse FIFO command: {e}");
break;
}
Err(_) => continue,
};
debug!("Received command: {cmd:?}");

Expand Down
Loading