File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -428,15 +428,15 @@ func (bw *baseWorker) Stop() {
428428func getAutoConfigHint (task interface {}) * shared.AutoConfigHint {
429429 switch t := task .(type ) {
430430 case * workflowTask :
431- if t .task = = nil {
432- return nil
431+ if t .task ! = nil {
432+ return t . task . AutoConfigHint
433433 }
434- return t .task . AutoConfigHint
434+ return t .autoConfigHint
435435 case * activityTask :
436- if t .task = = nil {
437- return nil
436+ if t .task ! = nil {
437+ return t . task . AutoConfigHint
438438 }
439- return t .task . AutoConfigHint
439+ return t .autoConfigHint
440440 default :
441441 return nil
442442 }
Original file line number Diff line number Diff line change @@ -1377,7 +1377,7 @@ func Test_augmentWorkerOptions(t *testing.T) {
13771377 WorkerDecisionTasksPerSecond : 100000 ,
13781378 MaxConcurrentDecisionTaskPollers : 2 ,
13791379 MinConcurrentDecisionTaskPollers : 2 ,
1380- PollerAutoScalerCooldown : time .Minute ,
1380+ PollerAutoScalerCooldown : time .Second * 10 ,
13811381 PollerAutoScalerTargetUtilization : 0.6 ,
13821382 PollerAutoScalerDryRun : false ,
13831383 Identity : "" ,
You can’t perform that action at this time.
0 commit comments