Migrate long running older workflows

Hi Team,

I am having a lifecycle workflow. In the future when there are drastic code changes where end to end logic changes and providing backward compatibility support with versions are not possible with the new implementation.

Is Terminate and continueAsNewWorkflow for all older workflows using tctl commands the only option or is there any other possibilities to handle programatically?


You can call continue as new using different workflow type. So you can first create a new workflow type with the new implementation and then change the old one to use the new type for continue as new.

Hi Maxim,

Thank you so much for your reply. Do you have any documentation or sample application explaining this scenario?

I don’t think we have a sample for such migration. The basic idea is to use a stub of a different workflow type to call continue as new.