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: iwf/workflow_context.go
+6Lines changed: 6 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -8,4 +8,10 @@ type WorkflowContext interface {
8
8
GetWorkflowStartTimestampSeconds() int64
9
9
GetStateExecutionId() string
10
10
GetWorkflowRunId() string
11
+
// GetFirstAttemptTimestampSeconds returns the start time of the first attempt of the API call. It's from ScheduledTimestamp of Cadence/Temporal activity.GetInfo
12
+
// require server version 1.2.2+, return 0 if server version is lower
13
+
GetFirstAttemptTimestampSeconds() int64
14
+
// GetAttempt returns an attempt number, which starts from 1, and increased by 1 for every retry if retry policy is specified. It's from Attempt of Cadence/Temporal activity.GetInfo
15
+
// require server version 1.2.2+, return 0 if server version is lower
0 commit comments