Skip to content

Use stderr directly to write errors in worker.js under node. NFC - #16161

Merged
sbc100 merged 1 commit into
mainfrom
reliable_worker_errors
Feb 1, 2022
Merged

sbc100 merged 1 commit into
mainfrom
reliable_worker_errors

Conversation

@sbc100

@sbc100 sbc100 commented Jan 31, 2022

Copy link
Copy Markdown
Collaborator

Writing directly to stderr works even when the main thread is currently
blocked (not returning to its message loop), for example in
pthread_join. We already do this in shell.sh when defining err in the
primary module code.

This issue was causing error messages from the worker to be lost in the
repro case posted in #16021.

Writing directly to stderr works even when the main thread is currently
blocked (not returning to its message loop), for example in
pthread_join.  We already do this in shell.sh when defining `err` in the
primary module code.

This issue was causing error messages from the worker to be lost in the
repro case posted in #16021.
@sbc100
sbc100 merged commit a41876c into main Feb 1, 2022
@sbc100
sbc100 deleted the reliable_worker_errors branch February 1, 2022 01:14
sbc100 added a commit that referenced this pull request Feb 1, 2022
Followup to #16161 such that printing works before the module is loaded.
This function depends on `ENVIRONMENT_IS_NODE` and `fs` which were
previously not defined until the main module was loaded.
sbc100 added a commit that referenced this pull request Feb 1, 2022
Followup to #16161 such that printing works before the module is loaded.
This function depends on `ENVIRONMENT_IS_NODE` and `fs` which were
previously not defined until the main module was loaded.
sbc100 added a commit that referenced this pull request Feb 1, 2022
Followup to #16161 such that printing works before the module is loaded.
This function depends on `ENVIRONMENT_IS_NODE` and `fs` which were
previously not defined until the main module was loaded.
sbc100 added a commit that referenced this pull request Feb 1, 2022
Followup to #16161 such that printing works before the module is loaded.
This function depends on `ENVIRONMENT_IS_NODE` and `fs` which were
previously not defined until the main module was loaded.
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