We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 977009d commit 5ffceceCopy full SHA for 5ffcece
src/client/commands/reports.rs
@@ -721,9 +721,14 @@ pub fn build_results_report(
721
}
722
"slurm" => {
723
// For slurm runner, extract slurm job ID from scheduler JSON
724
+ // The value may be stored as either a string or integer
725
if let Some(scheduler_value) = &compute_node.scheduler
726
&& let Some(slurm_job_id_val) = scheduler_value.get("slurm_job_id")
- && let Some(slurm_job_id_str) = slurm_job_id_val.as_str()
727
+ && let Some(slurm_job_id_str) = slurm_job_id_val
728
+ .as_str()
729
+ .map(|s| s.to_string())
730
+ .or_else(|| slurm_job_id_val.as_i64().map(|n| n.to_string()))
731
+ .as_deref()
732
{
733
slurm_job_id = Some(slurm_job_id_str.to_string());
734
0 commit comments