We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents de6cb43 + 9dc96cb commit a98161dCopy full SHA for a98161d
sciluigi/slurm.py
@@ -191,14 +191,14 @@ def log_slurm_info(self, slurm_stderr):
191
salloc: Job allocation 5836263 has been revoked.
192
'''
193
194
- matches = re.search('[0-9]+', slurm_stderr)
+ matches = re.search('[0-9]+', str(slurm_stderr))
195
if matches:
196
jobid = matches.group(0)
197
198
# Write slurm execution time to audit log
199
cmd = 'sacct -j {jobid} --noheader --format=elapsed'.format(jobid=jobid)
200
(_, jobinfo_stdout, _) = self.ex_local(cmd)
201
- sacct_matches = re.findall('([0-9\:\-]+)', jobinfo_stdout)
+ sacct_matches = re.findall('([0-9\:\-]+)', str(jobinfo_stdout))
202
203
if len(sacct_matches) < 2:
204
log.warn('Not enough matches from sacct for task %s: %s',
0 commit comments