Skip to content

Commit e6225b0

Browse files
committed
Debug slurm parsing
1 parent a570fa4 commit e6225b0

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

cluster/src/org/labkey/cluster/pipeline/SlurmExecutionEngine.java

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -497,7 +497,16 @@ private String extractField(String line, List<String> fieldWidths, int idx)
497497

498498
int end = start + fieldWidths.get(idx).length();
499499

500-
return StringUtils.trimToNull(line.substring(start, end));
500+
try
501+
{
502+
return StringUtils.trimToNull(line.substring(start, end));
503+
}
504+
catch (Exception e)
505+
{
506+
_log.error("Unable to parse slurm field at idx: " + idx + ". Line: [" + line + "]");
507+
_log.error("fieldWidths: " + StringUtils.join(fieldWidths, "|"), e);
508+
return null;
509+
}
501510
}
502511

503512
@Override

0 commit comments

Comments
 (0)