Skip to content

Setting out based on log directive from snakemake #120

Open

Description

@shashwatsahay

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions