andrewrk / andrewrk/naught

How can I distinguish between worker processes?

Aberta
#90 2 comentários 0 reações 0 responsáveis Ver no GitHub
Linguagem predominante
JavaScript
Estrelas
794
Forks
68
Métricas de merge de PRs
Nenhum PR com merge em 30d

Descrição

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.

Guia de contribuição

Nenhum guia de contribuição indexado para este repositório

Avaliação

Esta issue ainda não foi avaliada.

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.