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

Implement view service restarts in summonerd #3689

Closed
wants to merge 1 commit into from

Conversation

cronokirby
Copy link
Contributor

This uses the database being stale as a source of truth as to a lousy view service

This uses the database being stale as a source of truth as to a lousy
view service
/// Also this is sort of a stop-gap for a more robust view service where this method won't be
/// necessary, so one should exercise skepticism that this method even exists.
pub async fn abort(&self) {
self.worker_handle.abort();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Random observation, but if you want some stronger guarantees about the timing of the join handle cancellation, you can immediately await the worker handle and that will make this method return when those resources are actually released. It can be useful for testing.

@cratelyn cratelyn marked this pull request as draft February 1, 2024 16:19
@hdevalence
Copy link
Member

closing in favor of view-internal logic / health checks

@hdevalence hdevalence closed this Feb 3, 2024
@conorsch
Copy link
Contributor

conorsch commented Feb 5, 2024

Refs #3732.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants