-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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 always (or finally) tasks that run at the end regardless of the final state — useful for cleanup tasks #6649
Comments
That sounds a lot like the old "listeners" property or did I miss something? |
Yup, a lot of similarities there. The main reason is to enable cleanup tasks for things like QA flows. In contrast to listener which was a complex list of tasks and conditions, the always/finally would be intended as a simpler concept implying: always run those listed tasks at the end unconditionally (regardless of the state etc). In the end, a much simpler concept without much functionality overlap with Flow triggers as listener did |
Alright! Good idea IMO - was in favor to keep flow listeners so I'm happy to see the concept emerge again :) |
Listeners happen after the flow is terminated. Heremy advise would be for the implementation to call the finally (I strongly prefer finally here) tasks after tasks/errors then only to set the execution final state. |
The goal is to remove finally the listeners in favor of this |
@anna-geller seems that the team is pushy to have |
sure, no problem, go for |
Feature description
Internal use case: shut down Docker containers after QA tasks are finished
Possible syntax:
Later on, we can add the same concept within flowable tasks that currently support
errors
The text was updated successfully, but these errors were encountered: