Skip to content

Add shutdown watchdog for stalled Electron workers#5985

Open
aleksandr-voitenko wants to merge 7 commits into
stagingfrom
shutdown-watchdog
Open

Add shutdown watchdog for stalled Electron workers#5985
aleksandr-voitenko wants to merge 7 commits into
stagingfrom
shutdown-watchdog

Conversation

@aleksandr-voitenko

@aleksandr-voitenko aleksandr-voitenko commented Jun 18, 2026

Copy link
Copy Markdown
Collaborator

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.

@aleksandr-voitenko aleksandr-voitenko changed the title Add shutdown watchdog for stalled Electron workers [WIP] Add shutdown watchdog for stalled Electron workers Jun 18, 2026
@bundlemon

bundlemon Bot commented Jun 18, 2026

Copy link
Copy Markdown

BundleMon

Files added (4)
Status Path Size Limits
renderer.(hash).js
+7.86MB -
vendors~renderer.(hash).js
+4.67MB -
updater.js
+115.29KB -
guest-api.js
+40.23KB -

Total files change +12.68MB

Final result: ✅

View report in BundleMon website ➡️


Current branch size history

@aleksandr-voitenko aleksandr-voitenko changed the title [WIP] Add shutdown watchdog for stalled Electron workers Add shutdown watchdog for stalled Electron workers Jun 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants