Skip to content

Commit

Permalink
fix: remove redundant worker (minio#2003)
Browse files Browse the repository at this point in the history
remove redundance worker
  • Loading branch information
jiuker authored Mar 1, 2024
1 parent ae4af42 commit 0c7b670
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions pkg/controller/main-controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -452,13 +452,7 @@ func leaderRun(ctx context.Context, c *Controller, threadiness int, stopCh <-cha
panic("failed to wait for caches to sync")
}

klog.Info("Starting workers")
// Launch two workers to process Tenant resources
for i := 0; i < threadiness; i++ {
go wait.Until(c.runWorker, time.Second, stopCh)
}

klog.Info("Starting Job workers")
klog.Info("Starting workers and Job workers")
JobController := c.controllers[0]
// fmt.Println(controller.SyncHandler())
// Launch two workers to process Job resources
Expand Down

0 comments on commit 0c7b670

Please sign in to comment.