Skip to content

Commit 331ee5d

Browse files
committed
slurm2sql: Add a steps view that has only job steps
1 parent b0f7382 commit 331ee5d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

slurm2sql.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -896,6 +896,7 @@ def infer_type(cd):
896896
db.execute('CREATE TABLE IF NOT EXISTS slurm (%s)'%create_columns)
897897
db.execute('CREATE TABLE IF NOT EXISTS meta_slurm_lastupdate (id INTEGER PRIMARY KEY, update_time REAL)')
898898
db.execute('CREATE VIEW IF NOT EXISTS allocations AS select * from slurm where JobStep is null;')
899+
db.execute('CREATE VIEW IF NOT EXISTS steps AS select * from slurm where JobStep is not null;')
899900
db.execute('CREATE VIEW IF NOT EXISTS eff AS select '
900901
'JobIDnostep AS JobID, '
901902
'max(User) AS User, '

0 commit comments

Comments
 (0)