-
Notifications
You must be signed in to change notification settings - Fork 630
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
Documentation: workflow.stats
#4365
Comments
Quite interesting all these variables here: |
This is an internal data structure, don't think it should be documented |
Ok - use case on Slack was to detect if any errors had been ignored at the end of a run. Reason being to go past If not documenting |
This is a pretty useful feature. Imagine the scenario where you have 96 independent samples, if 1 fails and it brings the whole pipeline crashing down that's annoying, but if you use errorStrategy = 'ignore' then you have to write your own solution. We could have Having some form of introspection on tasks in the workflow.onComplete block would also help for similar reasons and be more generally useful. |
Closing, as no plans to document this for now. Might be something that turns up in the future if we ever spin up some (semi-) automated API docs for Nextflow. But it's a deliberate decision to omit from the prose docs for now. |
I don't think that
workflow.stats
is documented anywhere. It was added way back in 2017 (see #534). It's used in a bunch of places in Nextflow itself, eg:nextflow/modules/nextflow/src/main/resources/nextflow/trace/ReportTemplate.html
Line 120 in 0bce2be
It'd be nice to document this under Workflow introspection.
The text was updated successfully, but these errors were encountered: