I have a use case where I have a workflow consisting of few activities. The workflow is cron scheduled and will execute after every 30 days after getting started. There is an api exposed which can use to cancel the workflow. But the thing I found through the docs is every cron scheduled workflow will execute as a new workflow and all the local variables are getting refreshed whenever any workflow is exposed. I need to know the following two things:
- I want to stop the schedule for next run, but the current execution shall continue until the last activity. Not sure if there’s any trick to achieve the stop scheduled periodic workflow gracefully?
- How can i can propagate state of workflow in every cron run. Like values of local variables if updated in last run should be picked updated in next/current run.