Skip to content

Commit f8a078d

Browse files
tpfaurkdarst
andauthored
Update slurm2sql.py
Co-authored-by: Richard Darst <rkd@zgib.net>
1 parent 8ba478e commit f8a078d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

slurm2sql.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -938,7 +938,7 @@ def infer_type(cd):
938938
'JobIDnostep AS JobID, '
939939
'max(User) AS User, '
940940
'max(Partition) AS Partition, '
941-
'(SELECT s2.JobName FROM slurm AS s2 WHERE s2.JobIDnostep = slurm1.JobIDnostep AND s2.JobID = s2.JobIDnostep LIMIT 1) AS JobName,'
941+
'(SELECT s2.JobName FROM slurm AS s2 WHERE s2.JobIDnostep = slurm1.JobIDnostep AND s2.JobStep IS null LIMIT 1) AS JobName,'
942942
'group_concat(SubmitLine, \'\n\') AS SubmitLines, '
943943
'Account, '
944944
'(SELECT State FROM allocations AS allocations2 WHERE allocations2.jobid=slurm1.JobIDnostep) AS State, '

0 commit comments

Comments
 (0)