Skip to content
This repository has been archived by the owner on Nov 1, 2024. It is now read-only.

Fix bug around handling of failures in spawnWorker calls #87

Merged
merged 5 commits into from
Mar 7, 2024

Conversation

jakemac53
Copy link
Contributor

@jakemac53 jakemac53 commented Mar 6, 2024

Fixes dart-lang/tools#776

If a worker process fails to spawn, we will now complete the work attempt that caused the process to spawn with that failure, instead of never completing the attempt at all, causing a hang, and also leaking the async exception as an unhandled exception.

We could add retry logic in the future if we want, but it is probably unlikely that trying again will work. This way the actual failure should be reliably surfaced though.

@jakemac53 jakemac53 requested a review from natebosch March 6, 2024 23:59
@jakemac53 jakemac53 changed the title Fix bug around handling of failures in spawnWorker results. Fix bug around handling of failures in spawnWorker calls Mar 7, 2024
Copy link

github-actions bot commented Mar 7, 2024

Package publishing

Package Version Status Publish tag (post-merge)
package:bazel_worker 1.1.1 ready to publish v1.1.1

Documentation at https://github.com/dart-lang/ecosystem/wiki/Publishing-automation.

lib/src/driver/driver.dart Outdated Show resolved Hide resolved
@jakemac53 jakemac53 merged commit 8619b92 into master Mar 7, 2024
5 checks passed
@jakemac53 jakemac53 deleted the spawnWorker-failures branch March 7, 2024 00:36
mosuem pushed a commit to dart-lang/tools that referenced this pull request Oct 25, 2024
…ive/bazel_worker#87)

Fixes dart-lang/bazel_worker#86

If a worker process fails to spawn, we will now complete the work attempt that caused the process to spawn with that failure, instead of never completing the attempt at all, causing a hang, and also leaking the async exception as an unhandled exception.

We could add retry logic in the future if we want, but it is probably unlikely that trying again will work. This way the actual failure should be reliably surfaced though.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

BazelWorkerDriver will stall forever on requests if spawnWorker has an error
2 participants