Skip to content

Commit

Permalink
Revert "test"
Browse files Browse the repository at this point in the history
This reverts commit 10d0cf7.
  • Loading branch information
wzshiming committed Nov 27, 2024
1 parent 10d0cf7 commit 21968b4
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 12 deletions.
3 changes: 0 additions & 3 deletions pkg/kwok/controllers/node_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -327,9 +327,6 @@ func (c *NodeController) playStageWorker(ctx context.Context) {
if !ok {
return
}
if c.delayQueue.Len() > 10 {
go c.playStageWorker(ctx)
}
c.delayQueueMapping.Delete(node.Key)
needRetry, err := c.playStage(ctx, node.Resource, node.Stage)
if err != nil {
Expand Down
3 changes: 0 additions & 3 deletions pkg/kwok/controllers/node_lease_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,6 @@ func (c *NodeLeaseController) syncWorker(ctx context.Context) {
if !ok {
return
}
if c.delayQueue.Len() > 10 {
go c.syncWorker(ctx)
}
first, ok := c.holdLeaseSet.Load(nodeName)
if !ok {
continue
Expand Down
3 changes: 0 additions & 3 deletions pkg/kwok/controllers/pod_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -262,9 +262,6 @@ func (c *PodController) playStageWorker(ctx context.Context) {
if !ok {
return
}
if c.delayQueue.Len() > 10 {
go c.playStageWorker(ctx)
}
c.delayQueueMapping.Delete(pod.Key)
needRetry, err := c.playStage(ctx, pod.Resource, pod.Stage)
if err != nil {
Expand Down
3 changes: 0 additions & 3 deletions pkg/kwok/controllers/stage_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -240,9 +240,6 @@ func (c *StageController) playStageWorker(ctx context.Context) {
if !ok {
return
}
if c.delayQueue.Len() > 10 {
go c.playStageWorker(ctx)
}
c.delayQueueMapping.Delete(resource.Key)
needRetry, err := c.playStage(ctx, resource.Resource, resource.Stage)
if err != nil {
Expand Down

0 comments on commit 21968b4

Please sign in to comment.