-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
history: handle gracefulstop when history is active
When GracefulStop is called gRPC waits for current requests to finish before closing. While this is generally the behavior we want, it is not always same for the History.Listen endpoint. That endpoint is usually open even if buildkit is not actively processing any builds, because client may be waiting for new events. The new logic is that if GracefulStop will happen, history will close active listeners if there are no active builds. If there are active builds then active listeners will be closed after all the active builds have completed their finalizers. Signed-off-by: Tonis Tiigi <[email protected]>
- Loading branch information
1 parent
65f5dad
commit b241581
Showing
3 changed files
with
36 additions
and
2 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
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