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
@@ -113,7 +118,9 @@ func (e *executor) ExecuteTask(ctx context.Context, t *task.Workflow) (*Executio
113
118
skipNewEvents:=false
114
119
115
120
ift.LastSequenceID>e.lastSequenceID {
116
-
logger.Debug("Task has newer history than current state, fetching and replaying history", "task_sequence_id", t.LastSequenceID, "local_sequence_id", e.lastSequenceID)
121
+
logger.Debug("Task has newer history than current state, fetching and replaying history",
@@ -130,7 +137,9 @@ func (e *executor) ExecuteTask(ctx context.Context, t *task.Workflow) (*Executio
130
137
// With an error occurred during replay, we need to ensure new events don't get duplicate sequence ids
131
138
e.lastSequenceID=t.LastSequenceID
132
139
} elseift.LastSequenceID!=e.lastSequenceID {
133
-
logger.Error("After replaying history, task still has newer history than current state", "task_sequence_id", t.LastSequenceID, "local_sequence_id", e.lastSequenceID)
140
+
logger.Error("After replaying history, task still has newer history than current state",
141
+
log.TaskSequenceIDKey, t.LastSequenceID,
142
+
log.LocalSequenceIDKey, e.lastSequenceID)
134
143
135
144
returnnil, errors.New("even after fetching history and replaying history executor state does not match task")
136
145
}
@@ -188,9 +197,9 @@ func (e *executor) ExecuteTask(ctx context.Context, t *task.Workflow) (*Executio
188
197
}
189
198
190
199
logger.Debug("Finished workflow task",
191
-
"executed", len(executedEvents),
192
-
"last_sequence_id", e.lastSequenceID,
193
-
"completed", completed,
200
+
log.ExecutedEventsKey, len(executedEvents),
201
+
log.TaskLastSequenceIDKey, e.lastSequenceID,
202
+
log.WorkflowCompletedKey, completed,
194
203
)
195
204
196
205
return&ExecutionResult{
@@ -242,7 +251,7 @@ func (e *executor) executeNewEvents(newEvents []*history.Event) ([]*history.Even
0 commit comments