You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Firstly, thank you for your work, this is really useful.
I currently work on a project that needs a FSM (in fact many FSM).
This FSMs are created and fed an event log read.
For a production use, we need to schedule some persistence of the FSMs in order to avoid reading the event log from start each time we restart the program.
My initial approach is to serialize data to persist (via encoding/gob for ex.) including FSMs.
But the type FSM has no exported field that can be accessed by gob encoders.
So my question is : have you planned to add functions like (f *FSM) Save() []byte and (f *FSM) Load(backup []byte?
Did you think this can be useful ?
The text was updated successfully, but these errors were encountered:
Could be great if full FSM, but this could be tricky transition func...
If we save only state, then to reload them we must create FSM with all definition (sates, transition funcs).
Hi,
Is this feature in progress? We are making our app HA and wanted to see if there is any way to recover on crashes or share the FSM among multiple instances.
Firstly, thank you for your work, this is really useful.
I currently work on a project that needs a FSM (in fact many FSM).
This FSMs are created and fed an event log read.
For a production use, we need to schedule some persistence of the FSMs in order to avoid reading the event log from start each time we restart the program.
My initial approach is to serialize data to persist (via encoding/gob for ex.) including FSMs.
But the type FSM has no exported field that can be accessed by gob encoders.
So my question is : have you planned to add functions like (f *FSM) Save() []byte and (f *FSM) Load(backup []byte?
Did you think this can be useful ?
The text was updated successfully, but these errors were encountered: