Closed xapple closed 6 months ago
On ne peut pas ménager la chèvre et le chou.
Or with other words: We had a lengthy thread to implement the feature just like that. If there would be a PR to keep all the information and shorten the string, we would consider it.
Currently the rule to decide on the path to the log file of a SLURM job is to simply join all the wildcards of a given job.
https://github.com/snakemake/snakemake-executor-plugin-slurm/blob/912df8380b00742d256f42db8e7ab20d3836715b/snakemake_executor_plugin_slurm/__init__.py#L72
However, sometimes you will have a simple configuration variable such as the output path that can be fairly long.
Let's imagine a case where snakemake is launched like this:
Now you will see something like this for the log file:
There should be a mechanism to control which variables gets used, or let the user customize the log path entirely.
Currently my awkward solution is to monkey path the exectuor and change the method:
With something like this: