-
Notifications
You must be signed in to change notification settings - Fork 29.8k
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
[v22.2.0 regression] Some Worker
use cases are broken
#53011
Comments
Would it be possible to revert #52827 until a better fix is found? (i.e. the worker should just ignore unsupported argv that are passed implicitly rather than explicitly, or argv should be filtered before being passed to the worker) |
It seems like this behavior is quite intentional, as per docs:
And a simple workaround is to add |
If "
The docs say that "By default, options are inherited from the parent thread". The behavior before #52827 was (when defining Neither of the two behaviors seem ideal and neither matches the docs (when When not passing
Node.js doesn't expose a list of options that are forbidden, so it's impossible to do so (see #52827) |
How about adding some code to fix this by filtering out unwanted cli |
Maybe we can ignore the invalid args when the |
PR-URL: nodejs#53029 Fixes: nodejs#53011 Reviewed-By: Yagiz Nizipli <yagiz.nizipli@sentry.io> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
PR-URL: nodejs#53029 Fixes: nodejs#53011 Reviewed-By: Yagiz Nizipli <yagiz.nizipli@sentry.io> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Version
v22.2.0
Platform
all
Subsystem
worker_threads
What steps will reproduce the bug?
node --expose_gc .\test.mjs
How often does it reproduce? Is there a required condition?
always
What is the expected behavior? Why is that the expected behavior?
Hello, world!
What do you see instead?
Additional information
Ref: #52827
It seems that passing execArgv will cause some problems until #41103 is resolved.
I'm not sure this is a regression, but it could be an unintentional breakage and would be a bit difficult to resolve on the user side since there are no known exec argvs supported by
Worker
.cc @theanarkh You may be interested!
The text was updated successfully, but these errors were encountered: