Open AlexMKX opened 2 months ago
Hi @AlexMKX , how are you? Thanks for your suggestion. I think that in the end this relates to https://github.com/fgmacedo/python-statemachine/issues/386, as an alternative implementation solving the same issue.
Do you believe that some kind of a "finalize event handler" may solve your issue as well?
Description
Sometime action can't be completed and we need sort of cleanup code, which can be run after any action. In my case (for irrigation automation) : confirm the valve is closed and closed it if its not.
Idea to solve: Ability to issue special "from any state" transition to the cleanup handling final state. Specify the error handler in FSM configuration. Specify which states can be handled by the handler.
The current workaround