Skip to content

Do not error on messages from terminated workers - #27471

Open
tlively wants to merge 2 commits into
mainfrom
no-terminated-worker-message-error
Open

Do not error on messages from terminated workers#27471
tlively wants to merge 2 commits into
mainfrom
no-terminated-worker-message-error

Conversation

@tlively

@tlively tlively commented Aug 1, 2026

Copy link
Copy Markdown
Member

Messages can generally arrive after a worker has terminated if the message being sent races with the thread shutting down. This does not cause any problems, and the logging made it possible for expected test output to be interrupted.

Messages can generally arrive after a worker has terminated if the message being sent races with the thread shutting down. This does not cause any problems, and the logging made it possible for expected test output to be interrupted.
@tlively
tlively requested a review from sbc100 August 1, 2026 01:47
@tlively

tlively commented Aug 1, 2026

Copy link
Copy Markdown
Member Author

Noticed by Gemini while it was supposed to be working on something else. Thanks, I guess.

@kleisauke

Copy link
Copy Markdown
Collaborator

See also PR #27012, where this onmessage callback is removed.

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