mirror of
https://gitlab.cs.uni-saarland.de/hpc/cc-condor-sync.git
synced 2024-11-10 02:47:25 +01:00
Little bugfix, there might be failed jobs without a step
This commit is contained in:
parent
483bc0da1d
commit
631ed6c8b6
@ -310,7 +310,7 @@ class SlurmSync:
|
||||
else:
|
||||
jobsAcctData = self._getAccDataForJob(jobid)['jobs']
|
||||
for j in jobsAcctData:
|
||||
if j['steps'][0]['time']['start'] == ccjob['startTime']:
|
||||
if len(j['steps']) > 0 and j['steps'][0]['time']['start'] == ccjob['startTime']:
|
||||
jobAcctData = j
|
||||
jobstate = jobAcctData['state']['current'].lower()
|
||||
endtime = jobAcctData['time']['end']
|
||||
|
Loading…
Reference in New Issue
Block a user