File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -458,14 +458,14 @@ func (wtp *workflowTaskPoller) RespondTaskCompleted(completedRequest interface{}
458
458
WorkflowExecution : task .WorkflowExecution ,
459
459
WorkflowType : task .WorkflowType ,
460
460
}
461
- if ! wtp .ldaTunnel .sendTask (activityTask ) {
462
- // all pollers are busy - no room to optimize the remaining dispatches
461
+ if wtp .ldaTunnel .sendTask (activityTask ) {
462
+ wtp .metricsScope .Counter (metrics .ActivityLocalDispatchSucceedCounter ).Inc (1 )
463
+ decision .ScheduleActivityTaskDecisionAttributes .RequestLocalDispatch = common .BoolPtr (true )
464
+ activityTasks = append (activityTasks , activityTask )
465
+ } else {
466
+ // all pollers are busy - no room to optimize
463
467
wtp .metricsScope .Counter (metrics .ActivityLocalDispatchFailedCounter ).Inc (1 )
464
- break
465
468
}
466
- wtp .metricsScope .Counter (metrics .ActivityLocalDispatchSucceedCounter ).Inc (1 )
467
- decision .ScheduleActivityTaskDecisionAttributes .RequestLocalDispatch = common .BoolPtr (true )
468
- activityTasks = append (activityTasks , activityTask )
469
469
}
470
470
}
471
471
}
You can’t perform that action at this time.
0 commit comments