-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add standard logging of config values #18
Comments
Option 3 is enticing because it means the actual config in use is always in build logs, so when something unexpectedly goes wrong you can inspect the config (without having to reconstruct it in a separate subsequent run). |
|
Option 5: Always dumping the final, fully-expanded, config-as-loaded to an output file, e.g. This seems like the best option to me,
and @jameshadfield and @joverlee521 +1'd this idea where I originally suggested it. We could also do option 3 + 5 to get best of both worlds, which could be useful in rare cases when result files are lost (e.g. an out-of-disk-space Batch job), although 3 gets quite lengthy potentially. |
+1 for option 5, with the "yes, but" addition of "don't call the output |
Related thread where discussion about this is happening in parallel. |
Chatted with @j23414 and @kimandrews on this, they both like the config output file that can easily be re-used for another workflow run. |
Why? What makes the addition of (I can guess, but my guesses aren't compelling reasons (in my estimation), so I'm interested in your rationale.) |
If it's not named |
Context
With many layers of Snakemake configs provided via default configs and/or CLI options (
--configfile
/--config
), it is helpful to have a standard way of logging the config values used for a workflow run.Possible solutions
This is done in the ncov workflow with a
dump_config
rule. Users must specify the target with the same configs as their workflow run to see the config output.We could print out the config with each workflow run using the
onstart
handler. However, Snakemake docs note that these handlers are not triggered during dry-runs.--verbose
flag.The text was updated successfully, but these errors were encountered: