Skip to content

Commit 2da7602

Browse files
authored
fix: add --parsable to sbatch command (#522)
Fix #521. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Refactor** - Improved the format of job submission output for Slurm jobs, making job information easier to parse after submission. <!-- end of auto-generated comment: release notes by coderabbit.ai --> Signed-off-by: Jinzhe Zeng <[email protected]>
1 parent 9c2f9cb commit 2da7602

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dpdispatcher/machines/slurm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ def do_submit(self, job):
8585
# self.context.write_file(fname=os.path.join(self.context.submission.work_base, script_file_name), write_str=script_str)
8686
command = "cd {} && {} {}".format(
8787
shlex.quote(self.context.remote_root),
88-
"sbatch",
88+
"sbatch --parsable",
8989
shlex.quote(script_file_name),
9090
)
9191
ret, stdin, stdout, stderr = self.context.block_call(command)

0 commit comments

Comments
 (0)