Looking for clarification on this part of the documentation:
Specifically, when can we deploy workflow.deprecate_patch("my-patch").
Looks like there is 4 states:
- Initial (pre-patch)
- Patched
- Deprecated
- Removed Patched / Final
When going from Patched → Deprecated, the docs says:
After ensuring that all Workflows started with
pre_patch_activitycode have left retention, you can deprecate the patch.
It says “retention”, does it mean that we cannot deploy a deprecated_patch’d code until ALL pre-patch workflows (even completed ones) is removed from Temporal History? Or could we safely deploy a deprecated_patch’d as soon as all workflows are running the Patched code (regardless if there are any pre-patched workflows that are completed in Temporal History)?
Also, the same question apply for Deprecated → Removed Patched. It also uses the word
”retention”.