Skip to content

Give a name to a Worker (for debugging purpose) #41589

@shayyzhakov

Description

@shayyzhakov

What is the problem this feature will solve?

While debugging my Node.js app in VS Code, I've been trying to figure out which of the workers that are running is responsible for what, but found it hard to follow the flow as the workers were named Worker ${index} instead of having a more descriptive name. Since I'm heavily depending on workers and passing them any heavy job I encounter from time to time, I want to be able to track which of them is active at the moment during runtime.

image

What is the feature you are proposing to solve the problem?

It would be great if you could allow passing an optional param to specify a name/title for the worker, so we can later on use to track which of the workers are running (by name and not by a random number).

What alternatives have you considered?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature requestIssues that request new features to be added to Node.js.workerIssues and PRs related to Worker support.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions