8000 How can I distinguish between worker processes? · Issue #90 · andrewrk/naught · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
How can I distinguish between worker processes? #90
Open
@bmiller59

Description

@bmiller59

Hello. I would like to distinguish between the worker processes and run some code only in one process. Normally with node clusters you can do this by checking the cluster.isMaster property, but that does not work with naught because naught is the master.

Is there another way to distinguish and run some code only on 1 process per server while running under naught?

Thanks! Otherwise very pleased with naught.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0