Skip to content

Commit 520a257

Browse files
authored
Merge pull request #25 from tpfau/patch-1
A few changes wrt job steps and the efficiency table
2 parents 7efcff0 + f8a078d commit 520a257

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

slurm2sql.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -938,14 +938,14 @@ def infer_type(cd):
938938
'JobIDnostep AS JobID, '
939939
'max(User) AS User, '
940940
'max(Partition) AS Partition, '
941-
'max(JobName) 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, '
945945
#'State AS State, '
946946
'NodeList, '
947947
'Time, '
948-
'TimeLimit, '
948+
'max(TimeLimit) AS TimeLimit, '
949949
'min(Start) AS Start, '
950950
'max(End) AS End, '
951951
'max(NNodes) AS NNodes, '

0 commit comments

Comments
 (0)