diff options
Diffstat (limited to 'src/oar.rs')
| -rw-r--r-- | src/oar.rs | 7 |
1 files changed, 7 insertions, 0 deletions
| @@ -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 | ||
