aboutsummaryrefslogtreecommitdiff
path: root/src/oar.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/oar.rs')
-rw-r--r--src/oar.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/oar.rs b/src/oar.rs
index fb73109..7f0188f 100644
--- a/src/oar.rs
+++ b/src/oar.rs
@@ -138,6 +138,13 @@ fn extract_machines_from_oar_stat_json(output: &str, job_id: u32) -> Result<Vec<
138 None => return Err(eyre::eyre!("unknown machine: '{hostname}'")), 138 None => return Err(eyre::eyre!("unknown machine: '{hostname}'")),
139 } 139 }
140 } 140 }
141
142 if machines.is_empty() {
143 tracing::warn!(
144 "unable to find any machines for job id {job_id}. perhaps the job is not yet in the running state?"
145 );
146 }
147
141 Ok(machines) 148 Ok(machines)
142} 149}
143 150