Skip to content

Commit f0ebbf3

Browse files
committed
fix slurm.py
1 parent 361ec47 commit f0ebbf3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/psij/executors/batch/slurm.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,10 @@ def parse_info_command_output(self, exit_code: int, out: str,
352352
job.status.state = self._get_state(cols[7])
353353
job.current_info.submission_time = datetime.fromisoformat(cols[8])
354354
spec.directory = Path(cols[9])
355-
job.current_info.dispatch_time = datetime.fromisoformat(cols[10])
355+
if cols[10] == "N/A":
356+
job.current_info.dispatch_time = None
357+
else:
358+
job.current_info.dispatch_time = datetime.fromisoformat(cols[10])
356359
job.current_info.owner = cols[11]
357360
job.current_info.resourcelist = []
358361
if len(cols) > 12:

0 commit comments

Comments
 (0)