Skip to main content

WorkerOptions

interface WorkerOptions

Properties Jump to heading

optional
Jump to headingargv: any[] | undefined

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.

optional
Jump to headingenv:
Dict<string>
| SHARE_ENV
| undefined
optional
Jump to headingeval: boolean | undefined
optional
Jump to headingstdin: boolean | undefined
optional
Jump to headingstdout: boolean | undefined
optional
Jump to headingstderr: boolean | undefined
optional
Jump to headingexecArgv: string[] | undefined

Additional data to send in the first worker message.

optional
Jump to headingtrackUnmanagedFds: boolean | undefined
optional
Jump to headingname: string | undefined

An optional name to be appended to the worker title for debuggin/identification purposes, making the final title as [worker ${id}] ${name}.

Back to top