You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: internal/workflow.go
+9-1Lines changed: 9 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -792,18 +792,26 @@ type WorkflowInfo struct {
792
792
ParentWorkflowExecution*WorkflowExecution
793
793
Memo*s.Memo// Value can be decoded using data converter (DefaultDataConverter, or custom one if set).
794
794
SearchAttributes*s.SearchAttributes// Value can be decoded using DefaultDataConverter.
795
-
BinaryChecksum*string
795
+
BinaryChecksum*string// The identifier(generated by md5sum by default) of worker code that is making the current decision(can be used for auto-reset feature)
796
+
DecisionStartedEventIDint64// the eventID of DecisionStarted that is making the current decision(can be used for reset API)
796
797
RetryPolicy*s.RetryPolicy
797
798
}
798
799
799
800
// GetBinaryChecksum returns the binary checksum(identifier) of this worker
801
+
// It is the identifier(generated by md5sum by default) of worker code that is making the current decision(can be used for auto-reset feature)
802
+
// In replay mode, it's from DecisionTaskCompleted event. In non-replay mode, it's from the currently executing worker.
// GetDecisionCompletedEventID returns the eventID of DecisionStartedEvent that is making the current decision(can be used for reset API: decisionFinishEventID = DecisionStartedEventID + 1)
0 commit comments