Skip to content

fix: properly shutdown all services using preDestroy and unbindAll#646

Merged
jonathanlab merged 1 commit intomainfrom
fix/properly-shutdown-services
Jan 27, 2026
Merged

fix: properly shutdown all services using preDestroy and unbindAll#646
jonathanlab merged 1 commit intomainfrom
fix/properly-shutdown-services

Conversation

@jonathanlab
Copy link
Copy Markdown
Contributor

We were not properly cleaning up all services on lifecycleService.shutdown

This caused auto updates, CMD-Q, etc to break, because we'd have lingering services such as file watchers etc.
I've made it so that each stateful service has a @preDestroy now.
LifecycleService now calls unbindAll instead of destroying individual services. This in turn triggers @preDestroy

@jonathanlab jonathanlab requested a review from a team as a code owner January 27, 2026 13:54
@jonathanlab jonathanlab merged commit eb679c4 into main Jan 27, 2026
12 checks passed
@jonathanlab jonathanlab deleted the fix/properly-shutdown-services branch January 27, 2026 14:11
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.

2 participants