Skip to content

Commit 4bd5afa

Browse files
committed
Get JobName in SlurmInfo sampler
1 parent 2cc0270 commit 4bd5afa

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

sams/sampler/SlurmInfo.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,11 @@ def sample(self):
122122
if starttime:
123123
self.data["starttime"] = starttime.group(1)
124124

125+
# Find JobName
126+
jobname = re.search(r"JobName=([^ ]+)", data)
127+
if jobname:
128+
self.data["jobname"] = jobname.group(1)
129+
125130
if not self.do_sample():
126131
self.store(self.data)
127132

0 commit comments

Comments
 (0)