Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Leung <[email protected]>
  • Loading branch information
rleungx committed Dec 3, 2024
1 parent 11f48c7 commit 7c9986b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
5 changes: 2 additions & 3 deletions pkg/schedule/checker/checker_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,12 +134,11 @@ func (c *Controller) PatrolRegions() {
for {
select {
case <-ticker.C:
c.updateTickerIfNeeded(ticker)
c.updatePatrolWorkersIfNeeded()
if !c.prepareChecker.Check(c.cluster.GetBasicCluster()) {
time.Sleep(time.Second)
continue
}
c.updateTickerIfNeeded(ticker)
c.updatePatrolWorkersIfNeeded()
if c.cluster.IsSchedulingHalted() {
for len(c.patrolRegionContext.regionChan) > 0 {
<-c.patrolRegionContext.regionChan
Expand Down
1 change: 0 additions & 1 deletion pkg/schedule/schedulers/scheduler_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,6 @@ func (c *Controller) runScheduler(s *ScheduleController) {
select {
case <-ticker.C:
if !c.prepareChecker.Check(c.cluster.GetBasicCluster()) {
time.Sleep(time.Second)
continue
}
diagnosable := s.IsDiagnosticAllowed()
Expand Down

0 comments on commit 7c9986b

Please sign in to comment.