Skip to content
Snippets Groups Projects
Commit 92b0fff6 authored by Steffen Hauf's avatar Steffen Hauf
Browse files

Make the cluster launch command configurable

parent eed90f31
No related branches found
No related tags found
1 merge request!8Make the cluster launch command configurable
......@@ -38,8 +38,8 @@ python file of the form::
# Also try to output the report to an out_folder defined by the notebook
try_report_to_output = True
# The SLURM partition to use
slurm_partion = "exfel"
# the command to run this concurrently. It is prepended to the actual call
launcher_command = "sbatch -p exfel -t 24:00:00 --mem 500G --mail-type END --requeue --output {temp_path}/slurm-%j.out"
A comment is given for the meaning of each configuration parameter.
......
......@@ -269,9 +269,7 @@ def concurrent_run(temp_path, nb, nbname, args, cparm=None, cval=None,
os.chmod("{}/finalize.sh".format(temp_path), all_stats)
# then run an sbatch job
if not sequential:
srun_base = ["sbatch", "-p", slurm_partion, "-t", "24:00:00",
"--mem", "500G", "--mail-type", "END", "--requeue",
"--output", "{}/slurm-%j.out".format(temp_path)]
srun_base = launcher_command.format(temp_path=temp_path).split()
else:
srun_base = []
......
......@@ -24,5 +24,5 @@ report_path = "{}/calibration_reports/".format(os.getcwd())
# Also try to output the report to an out_folder defined by the notebook
try_report_to_output = True
# The SLURM partition to use
slurm_partion = "exfel"
\ No newline at end of file
# the command to run this concurrently. It is prepended to the actual call
launcher_command = "sbatch -p exfel -t 24:00:00 --mem 500G --mail-type END --requeue --output {temp_path}/slurm-%j.out"
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment