Skip to content

Commit

Permalink
Add debug logging for activity retrytimer
Browse files Browse the repository at this point in the history
  • Loading branch information
yycptt committed Sep 14, 2022
1 parent 81a92f1 commit 9f7c100
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
10 changes: 10 additions & 0 deletions service/history/timerQueueActiveTaskExecutor.go
Expand Up @@ -390,6 +390,16 @@ func (t *timerQueueActiveTaskExecutor) executeActivityRetryTimerTask(
ctx context.Context,
task *tasks.ActivityRetryTimerTask,
) (retError error) {

t.logger.Info("Executing activity retry timer task",
tag.WorkflowID(task.GetWorkflowID()),
tag.WorkflowRunID(task.GetRunID()),
tag.WorkflowNamespaceID(task.GetNamespaceID()),
tag.WorkflowScheduledEventID(task.EventID),
tag.FailoverVersion(task.Version),
tag.ScheduleAttempt(task.Attempt),
)

ctx, cancel := context.WithTimeout(ctx, taskTimeout)
defer cancel()

Expand Down
8 changes: 8 additions & 0 deletions service/history/workflow/mutable_state_impl.go
Expand Up @@ -3740,6 +3740,14 @@ func (e *MutableStateImpl) RetryActivity(
ai.RetryLastWorkerIdentity = ai.StartedIdentity
ai.RetryLastFailure = failure

e.logger.Info("Generating activity retry timer task",
tag.WorkflowID(e.executionInfo.WorkflowId),
tag.WorkflowRunID(e.executionState.RunId),
tag.WorkflowNamespaceID(e.executionInfo.NamespaceId),
tag.WorkflowScheduledEventID(ai.ScheduledEventId),
tag.ScheduleAttempt(ai.Attempt),
)

if err := e.taskGenerator.GenerateActivityRetryTasks(
ai.ScheduledEventId,
); err != nil {
Expand Down

0 comments on commit 9f7c100

Please sign in to comment.