Skip to content

Commit

Permalink
Merge pull request #43 from njzjz/master
Browse files Browse the repository at this point in the history
fix function typo
  • Loading branch information
njzjz committed Jun 7, 2021
2 parents f6fa6ed + d1a02ae commit 4cdd215
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dpdispatcher/slurm.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def do_submit(self, job, retry=0, max_retry=3):
# script_str = self.sub_script(job_dirs, cmd, args=args, resources=resources, outlog=outlog, errlog=errlog)
self.context.write_file(fname=script_file_name, write_str=script_str)
# self.context.write_file(fname=os.path.join(self.context.submission.work_base, script_file_name), write_str=script_str)
ret, stdin, stdout, stderr = self.context.checkcall('cd %s && %s %s' % (self.context.remote_root, 'sbatch', script_file_name))
ret, stdin, stdout, stderr = self.context.block_call('cd %s && %s %s' % (self.context.remote_root, 'sbatch', script_file_name))
if ret != 0:
err_str = stderr.read().decode('utf-8')
if "Socket timed out on send/recv operation" in err_str:
Expand Down

0 comments on commit 4cdd215

Please sign in to comment.