finally is there a way to know in the Workflow itself if it is being terminated / restarted, and all

finally is there a way to know in the Workflow itself if it is being terminated / restarted, and allow itself to clean up some resources?

If my understanding is correct, termination only happens between each step/sleep, but there doesn't seem to be way to know if the workflow is being terminated.
Was this page helpful?