Add shutdown watchdog for stalled Electron workers#5985
Open
aleksandr-voitenko wants to merge 7 commits into
Open
Add shutdown watchdog for stalled Electron workers#5985aleksandr-voitenko wants to merge 7 commits into
aleksandr-voitenko wants to merge 7 commits into
Conversation
BundleMonFiles added (4)
Total files change +12.68MB Final result: ✅ View report in BundleMon website ➡️ |
sandboxcoder
approved these changes
Jun 18, 2026
# Conflicts: # package.json # scripts/repositories.json
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a coordinated, bounded shutdown flow across Electron’s main process and worker renderer. The main process waits up to 10 seconds for acknowledgement, 30 seconds for worker teardown, and 10 seconds for Electron to exit after completion, force-exiting when a phase stalls.
Worker shutdown now persists local scene and session state before destructive OBS teardown, continues remaining steps after individual failures, bounds analytics flushing to three seconds, and reports whether shutdown completed cleanly. File flushing now supports concurrent shutdown callers and writes that race an in-flight flush.
If a second instance starts during shutdown, its arguments are preserved and one relaunch is scheduled; the active watchdog continues to bound the original process’s exit. Scene-collection cloud synchronization is deferred to startup so network stalls cannot block shutdown.