Skip to content

Commit 89d2cf5

Browse files
committed
Add comment
1 parent 0174c23 commit 89d2cf5

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

service/history/tasks/utils.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ func GetTransferTaskEventID(
8282
if len(task.ScheduledEventIDs) > 0 {
8383
eventID = task.ScheduledEventIDs[0]
8484
} else {
85+
// Should never happen.
8586
eventID = common.FirstEventID
8687
}
8788
case *FakeTask:

service/history/workflow/task_generator.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -590,6 +590,7 @@ func (r *TaskGeneratorImpl) GenerateCancelActivityNexusTasks(scheduledEventID in
590590
}
591591

592592
ai, ok := r.mutableState.GetActivityInfo(scheduledEventID)
593+
// If control queue is not set, it means the worker that this activity belongs to does not support Nexus tasks.
593594
if !ok || ai.WorkerControlTaskQueue == "" {
594595
return nil
595596
}

0 commit comments

Comments
 (0)