sdk-go icon indicating copy to clipboard operation
sdk-go copied to clipboard

Support New Versioning in WorkflowInfo.GetCurrentBuildID()

Open ShahabT opened this issue 1 year ago • 1 comments

Is your feature request related to a problem? Please describe.

In new versioning, current build ID for tasks being replayed should be retrieved from the WFTStarted event rather than WFTCompleted event. The stamp in WorkflowTaskCompletedEventAttributes is deprecated and will be removed after old versioning clean up.

Note that if the started event does not have a (non-empty) Build ID, then the one in completed task should be still used to keep the support for old versioning for now.

ShahabT avatar May 14 '24 05:05 ShahabT

Currently we are duplicating the Build ID and adding it to both WFTStarted and WFTCompleted for backwards compatibility, is that correct?

antlai-temporal avatar May 29 '24 01:05 antlai-temporal