Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[cli-dev-mode] complete shutdown once devServer stops gracefully #95822

Merged
merged 2 commits into from
Mar 30, 2021

Conversation

spalger
Copy link
Contributor

@spalger spalger commented Mar 30, 2021

In #95145 CliDevMode is now responsible for the lifecycle of the entire CLI, but we forgot to double check that it was shutting things down as it should. The plumbing was already in place for this but wasn't actually used before because src/core calls process.exit(0) once it is finished shutting down, so we now need to call CliDevMode#stop() when we should finally teardown all of the listeners, watchers, servers, etc. that are started by CliDevMode.

@spalger spalger added Team:Operations Team label for Operations Team v8.0.0 release_note:skip Skip the PR/issue when compiling release notes v7.13.0 labels Mar 30, 2021
@spalger
Copy link
Contributor Author

spalger commented Mar 30, 2021

@elasticmachine merge upstream

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

✅ unchanged

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@spalger spalger marked this pull request as ready for review March 30, 2021 21:58
@spalger spalger requested a review from a team as a code owner March 30, 2021 21:58
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-operations (Team:Operations)

@spalger spalger merged commit c35ef75 into elastic:master Mar 30, 2021
@spalger spalger deleted the fix/cli-dev-mode-exit branch March 30, 2021 22:57
@spalger spalger added the auto-backport Deprecated - use backport:version if exact versions are needed label Mar 30, 2021
kibanamachine added a commit to kibanamachine/kibana that referenced this pull request Mar 30, 2021
@kibanamachine
Copy link
Contributor

💚 Backport successful

7.x / #95878

This backport PR will be merged automatically after passing CI.

kibanamachine added a commit that referenced this pull request Mar 31, 2021
) (#95878)

Co-authored-by: spalger <[email protected]>
Co-authored-by: Kibana Machine <[email protected]>

Co-authored-by: Spencer <[email protected]>
Co-authored-by: spalger <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-backport Deprecated - use backport:version if exact versions are needed release_note:skip Skip the PR/issue when compiling release notes Team:Operations Team label for Operations Team v7.13.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants