glimt icon indicating copy to clipboard operation
glimt copied to clipboard

FSM should be discarded on success/failure

Open ingesolvoll opened this issue 4 years ago • 4 comments

We don't want dead interceptors to keep processing any event when FSM is finished. We could also clear db state, but would have to look into details there. Clearing state too early might harm UX.

ingesolvoll avatar Dec 08 '21 08:12 ingesolvoll

Clearing state too early might harm UX.

I agree that this is a big concern. I often want state to stick around (at least for a few seconds) after a request completes, so that I can flash a success (or failure) message or icon.

mainej avatar Dec 09 '21 02:12 mainej

If you implement this, do you plan to remove restarts? I don't particularly need restarts, just curious.

mainej avatar Dec 09 '21 02:12 mainej

Well, with the current implementation it will remove the ability to restart. So maybe something in the config that starts the machine? Like :unmount-when-finished?.

ingesolvoll avatar Dec 09 '21 06:12 ingesolvoll

:unmount-when-finished?

👍 sounds reasonable to me.

mainej avatar Dec 12 '21 02:12 mainej