Skip to content

Commit 37c2a1c

Browse files
committed
Remove worker_instance_key as it is not needed
1 parent f70690d commit 37c2a1c

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

service/history/cancel_activity.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ func (t *transferQueueActiveTaskExecutor) processCancelActivityTask(
3232
return nil
3333
}
3434

35-
if task.WorkerInstanceKey == "" || len(task.ScheduledEventIDs) == 0 {
35+
if len(task.ScheduledEventIDs) == 0 {
3636
return nil
3737
}
3838

@@ -73,8 +73,7 @@ func (t *transferQueueActiveTaskExecutor) processCancelActivityTask(
7373
}
7474

7575
// getNexusTaskQueue returns the Nexus control queue for a batch of activities.
76-
// All activities in a batch are from the same worker (batched by WorkerInstanceKey),
77-
// so they share the same control queue. Returns error if control queues are inconsistent.
76+
// All activities in a batch share the same control queue. Returns error if control queues are inconsistent.
7877
func getNexusTaskQueue(
7978
mutableState historyi.MutableState,
8079
scheduledEventIDs []int64,

0 commit comments

Comments
 (0)