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
onError/onSuccess for rules #133
Comments
Doesn't snakemake already output progress of rule execution? At least it reports error/success I think. Would something that periodically probes an output log file of snakemake work? |
I think snakemake run logs are not overly parser friendly for the environment I am in, both in structure and in timing (flush of output into a file). It would be cleaner to hook into the return code via callback. That way there is no separate process that watches the logs, and the callback is just another task I can instruct snakemake to execute on. Perhaps I may be missing some logging options? |
Hello Everybody, first of all: Thanks for the great tool! We are using Is there any chance to get some momentum behind this enhancement request? If so and with a somewhat clear prospect to get such a feature merged eventually, I would be happy to take on the work on this and prepare a MR. What do you think? |
I would also be interested in such a feature. I have a few core steps in a workflow where it would be convenient to have a rule-level |
I would also add that I wouldn't mind having this! |
A rule can complete successfully (exit code 0) but its outputs can be still be wrong. (e.g. if the invoked tool is buggy, if the user specified an incorrect argument, if the user provided incorrect inputs to the rule, etc) One helpful use case for rule-level |
Hello,
I have a long running workflows, and want to report the progress of execution to an external dashboard.
It would be nice to have rule-level onerror/onsuccess hooks so that a more granular reporting can be done. This call back can be used to execute pre- and post- logic.
I currently work around it by emulating start/stop of a rule by wrapping processing action in a call to an external utility (which in turn makes an HTTP call to the dashboard) but was hoping this can be done natively.
Thank you.
The text was updated successfully, but these errors were encountered: