-
Notifications
You must be signed in to change notification settings - Fork 611
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
orchestrator/global: Delete tasks when their node is deleted
Currently, the global orchestrator leaves associated tasks around when a node is deleted. There is no process for reaping these tasks, as the task reaper keeps a certain number of global service tasks *per node*. Instead, delete the task right away when its node is deleted. This is similar to how the replicated orchestrator deletes tasks when scaling down, since tasks in those slots that are no longer being used would not end up being reaped. Signed-off-by: Aaron Lehmann <aaron.lehmann@docker.com>
- Loading branch information
1 parent
fd73175
commit 56463e4
Showing
2 changed files
with
26 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters