python-statemachine
python-statemachine copied to clipboard
Finalize action after transition success or failure.
- Python State Machine version: 2.0.0
- Python version: 3.10
- Operating System: mac os 13
Description
I am looking for an action which gets called after a transition happened whether successfully or not. Basically I am implementing a distributed state machine, and I want to execute one transition at a time. So for that I am trying to put a lock on before a transition happen and release the same after the transition (success/failure).
What I Did
I didn't do anything yet, except searching it in the documentation but didn't find anything.
Hi @sandeep2rawat , thanks for your suggestion. Currently this is not supported out of the box. Mapped as enhancement.
Feel free to implement or I can work on it on my spare time on the next weeks.
Best regards!