Skip to content

Commit

Permalink
On replayer use task queue from history (#1023)
Browse files Browse the repository at this point in the history
  • Loading branch information
Quinn-With-Two-Ns authored Jan 31, 2023
1 parent 6e8a39a commit 093eabe
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions internal/internal_worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -1289,6 +1289,10 @@ func (aw *WorkflowReplayer) replayWorkflowHistory(logger log.Logger, service wor
execution.RunId = first.GetWorkflowExecutionStartedEventAttributes().GetOriginalExecutionRunId()
}

if first.GetWorkflowExecutionStartedEventAttributes().GetTaskQueue().GetName() != "" {
taskQueue = first.GetWorkflowExecutionStartedEventAttributes().GetTaskQueue().GetName()
}

task := &workflowservice.PollWorkflowTaskQueueResponse{
Attempt: 1,
TaskToken: []byte("ReplayTaskToken"),
Expand Down

0 comments on commit 093eabe

Please sign in to comment.