Skip to content

Commit 0eb9ffc

Browse files
authored
Merge pull request #140 from GreenScheduler/137-sbatch-output
Display sbatch output
2 parents 7c12384 + 33f499c commit 0eb9ffc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cats/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ def schedule_sbatch(output: CATSOutput, args: list[str]) -> Optional[str]:
293293
:return: Error as a string, or None if successful
294294
"""
295295
try:
296-
subprocess.check_output(
296+
sbatch_output = subprocess.check_output(
297297
[
298298
"sbatch",
299299
"--begin",
@@ -303,6 +303,7 @@ def schedule_sbatch(output: CATSOutput, args: list[str]) -> Optional[str]:
303303
*args,
304304
]
305305
)
306+
print(sbatch_output.decode("utf-8"))
306307
return None
307308
except FileNotFoundError:
308309
return "No sbatch command found in PATH, ensure slurm is configured correctly"

0 commit comments

Comments
 (0)