-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Start the initial status timeout when the service is "started" (#172268)
## Summary The _plugins status service_ listens to some of the plugins' statuses through Observables. If these plugins don't emit an initial status after some time, it injects a first "timed out" value, with an `unavailable` state. We're currently starting this 30s timeout at service creation time. This is not accurate, as other services starting before plugins (e.g. saved objects + migrations) are time consuming and can leave short to no time for plugins to `start()` before hitting the 30s timeout. This PR aims at fixing this, by starting to count when the plugins `start()` methods are called. This way, we're actually giving plugins 30s to emit a status.
- Loading branch information
1 parent
f89c6fd
commit 2eba909
Showing
3 changed files
with
33 additions
and
28 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