So let me go a bit wider and see if you guys can give me some advice. I am using the state handler to load some data into an object when the flow starts. The data is used across various pieces of my flows, it is very similar to the Prefect Context object.
Everything works fine when a flow runs without heartbeat issues, the data gets loaded and the tasks that rely on it succeed. But when the flow is restarted by Lazarus, the data does not get loaded and the tasks fail. When this happens I can use the Restart button on the failed flow to kick it off, and when it is restarted that way, the flow handler step works properly again.
If a state handler isn't reliable when a flow restarts from Lazarus, is there another method I could use to always run a bit of code (not in a Task) when a flow starts running, regardless of when/how it is started?