Skip to content

Commit 5a6784c

Browse files
committed
slurm2sql: seff: show job state
1 parent a456d69 commit 5a6784c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

slurm2sql.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1272,6 +1272,7 @@ def seff_cli(argv=sys.argv[1:], csv_input=None):
12721272
JobID,
12731273
User,
12741274
round(Elapsed/3600,2) AS hours,
1275+
substr(state, 1, 2) AS ST,
12751276
{long_output}
12761277
12771278
NCPUS,
@@ -1296,8 +1297,8 @@ def seff_cli(argv=sys.argv[1:], csv_input=None):
12961297
print("No data fetched with these sacct options.")
12971298
exit(2)
12981299
print(tabulate(data, headers=headers, tablefmt=args.format,
1299-
colalign=('decimal', 'center', 'decimal',
1300-
*(['center', 'center'] if long_output else []),
1300+
colalign=('decimal', 'center', 'decimal', 'center',
1301+
*(['center', 'center'] if long_output else []), # long output formats if enabled
13011302
'decimal', 'right', # cpu
13021303
'decimal', 'decimal', 'right', # mem
13031304
'decimal', 'right', # gpu

0 commit comments

Comments
 (0)