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{}
458458 WorkflowExecution : task .WorkflowExecution ,
459459 WorkflowType : task .WorkflowType ,
460460 }
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
463467 wtp .metricsScope .Counter (metrics .ActivityLocalDispatchFailedCounter ).Inc (1 )
464- break
465468 }
466- wtp .metricsScope .Counter (metrics .ActivityLocalDispatchSucceedCounter ).Inc (1 )
467- decision .ScheduleActivityTaskDecisionAttributes .RequestLocalDispatch = common .BoolPtr (true )
468- activityTasks = append (activityTasks , activityTask )
469469 }
470470 }
471471 }
You can’t perform that action at this time.
0 commit comments