Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(ext/node): do not exit worker thread when there is pending async op #27378

Merged
merged 8 commits into from
Dec 19, 2024

Conversation

kt3k
Copy link
Member

@kt3k kt3k commented Dec 16, 2024

This PR fixes the premature exit of worker threads when there are still remaining pending ops.

This PR reuses the idea of #22647 (unref'ing op_worker_recv_message in worker threads if closeOnIdle specified) and uses web_worker.has_message_event_listener check in the opposite way as #22944. (Now we continue the worker when has_message_event_listener is true instead of stopping it when has_message_event_listener is false.

closes #23061
closes #26154

This change seems fixing the pino logger's file output behavior (#26154 )

Copy link
Member

@nathanwhit nathanwhit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@kt3k kt3k merged commit 350d9dc into denoland:main Dec 19, 2024
17 checks passed
@kt3k kt3k deleted the fix-worker-threads-exit-prematurely branch December 19, 2024 08:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants