forked from percyfal/slurm
-
Notifications
You must be signed in to change notification settings - Fork 45
Open
Description
Is there any drawback to using the following code in slurm-submit.py
this way I can directly set the log file and folder based on the rule's log directive?
is there a reason why this is not the default way?
if "output" not in sbatch_options and "log" not in job_properties and CookieCutter.get_cluster_logpath():
outlog = joblog.outlog
log = outlog
sbatch_options["output"] = outlog
elif "log" in job_properties:
sbatch_options["output"]=job_properties["log"][0]
if "error" not in sbatch_options and "log" not in job_properties and CookieCutter.get_cluster_logpath():
errlog = joblog.errlog
log = errlog
sbatch_options["error"] = errlog
Metadata
Metadata
Assignees
Labels
No labels