python-statemachine icon indicating copy to clipboard operation
python-statemachine copied to clipboard

Finalize action after transition success or failure.

Open sandeep2rawat opened this issue 2 years ago • 1 comments

  • 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.

sandeep2rawat avatar May 05 '23 07:05 sandeep2rawat

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!

fgmacedo avatar Jun 05 '23 14:06 fgmacedo