Skip to content

Commit 00e6dde

Browse files
authored
Merge pull request #1957 from dongluochen/bump_v1.13.2
Global orchestrator reconcileServices should look at desired state only
2 parents 4264d39 + e6f7020 commit 00e6dde

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

manager/orchestrator/global/global.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -504,7 +504,7 @@ func (g *Orchestrator) removeTasks(ctx context.Context, batch *store.Batch, task
504504
}
505505

506506
func isTaskRunning(t *api.Task) bool {
507-
return t != nil && t.DesiredState <= api.TaskStateRunning && t.Status.State <= api.TaskStateRunning
507+
return t != nil && t.DesiredState <= api.TaskStateRunning
508508
}
509509

510510
func isTaskCompleted(t *api.Task, restartPolicy api.RestartPolicy_RestartCondition) bool {

0 commit comments

Comments
 (0)