Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
allocator: Avoid allocating tasks that are no longer running
The allocator currently uses taskDead to check if a task should not be allocated. However, this checks that both the desired state and actual state are past "running". In the case of attachment tasks, there is no orchestration, and the desired state is always "running". This means allocation can be reattempted on a failed attachment task indefinitely. Change the allocator to only try to allocate tasks where both the desired and actual state are "running" or below. Signed-off-by: Aaron Lehmann <aaron.lehmann@docker.com>
- Loading branch information