Skip to content

Add shutdown watchdog for stalled Electron workers#5985

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

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

Conversation

@aleksandr-voitenko

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

Copy link
Copy Markdown
Collaborator

Summary

  • Adds a Desktop main-process shutdown coordinator with the existing 10s worker-ack timeout plus a new 30s post-ack completion watchdog.
  • Force-exits if a second instance launches while the first instance is stuck shutting down, releasing the single-instance lock.
  • Wraps worker shutdown steps with logging and sends shutdownComplete from finally when teardown finishes or throws.
  • More logs for better debugging

Tests

  • Adds AVA coverage for ack timeout, completion timeout, completed shutdown, and second-instance shutdown behavior.

@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.79MB -
vendors~renderer.(hash).js
+4.67MB -
updater.js
+115.29KB -
guest-api.js
+40.23KB -

Total files change +12.6MB

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants