You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
interfaceWorkerOptions{/** * List of arguments which would be stringified and appended to * `process.argv` in the worker. This is mostly similar to the `workerData` * but the values will be available on the global `process.argv` as if they * were passed as CLI options to the script. */argv?: any[]|undefined;env?: NodeJS.Dict<string>|typeofSHARE_ENV|undefined;eval?: boolean|undefined;workerData?: any;stdin?: boolean|undefined;stdout?: boolean|undefined;stderr?: boolean|undefined;execArgv?: string[]|undefined;resourceLimits?: ResourceLimits|undefined;/** * Additional data to send in the first worker message. */transferList?: TransferListItem[]|undefined;/** * @default true */trackUnmanagedFds?: boolean|undefined;/** * An optional `name` to be appended to the worker title * for debuggin/identification purposes, making the final title as * `[worker ${id}] ${name}`. */name?: string|undefined;}
Above I would think that if I plan to use the worker_threads library to access workerData, then I should be defining workerData as an element of worker inside the options for transport.
inside of the transport code, we have the base options object defined:
follow the definition of workerOptions to node:
Above I would think that if I plan to use the worker_threads library to access workerData, then I should be defining workerData as an element of worker inside the options for transport.
However, if we take a look at transport.js:
this leads me to believe that the thread will be built with my workerOptions...
BUT buildStream 're-names' options to workerData, but also passes 'workerOpts' which also has the element 'workerData' as shown above.
If you do import workerData you end up with what I would think are supposed to be the logger options passed to the transport.
Please correct me if I'm wrong, or at least explain how this is supposed to work and what the actual 'options' are meant to be.
Thank you.
The text was updated successfully, but these errors were encountered: