mirror of
https://github.com/hanzoai/tasks.git
synced 2026-10-04 02:04:03 +00:00
<!-- Describe what has changed in this PR --> **What changed?** Handle replicate workflow state with exist workflow data. <!-- Tell your future self why have you made these changes --> **Why?** During migration interruption, some workflow data might be partially migrated. This case is not handle in replicate workflow state. <!-- How have you verified this change? Tested locally? Added a unit test? Checked in staging env? --> **How did you test it?** Update current unit test. A manual test will be perform: 1. Connect two cluster. 2. Start a long running workflow. 3. Disconnect two cluster. 4. Terminate the old workflow and start a new long running workflow. 5. Force replication open workflow. 6. Force replication closed workflow. <!-- Assuming the worst case, what can be broken when deploying this change to production? --> **Potential risks** <!-- Is this PR a hotfix candidate or require that a notification be sent to the broader community? (Yes/No) --> **Is hotfix candidate?** Yes.