-
Notifications
You must be signed in to change notification settings - Fork 659
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
Feature Request: workflow.onStart event handler #1138
Comments
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
@pditommaso Is this still |
The rationale was the start of the execution is the execution of the script itself. However, using DSL2, this could make more sense. What's your use case? |
@pditommaso Our use case is nothing that can't be done in the start of the workflow (eg. notifications), it's just the API in its current form is asymmetric. We have workflow complete/error handling notifications in their own handlers, but workflow start handling must be placed inside the workflow itself. It would be cleaner for user code and clearer for the language to introduce an onStart. |
New feature
A workflow.onStart (like workflow.onComplete) event handler for pipelines.
Usage scenario
It would be useful if a Nextflow pipeline could send a notification email that says the workflow has started in a situation where the pipeline is automatically triggered at the presence of specific files in a directory.
Suggest implementation
May be able to reuse some of the code developed for workflow.onComplete event handler to implement the workflow start event handler.
The text was updated successfully, but these errors were encountered: