andrewrk / andrewrk/naught

How can I distinguish between worker processes?

Abierto
#90 2 comentarios 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
JavaScript
Estrellas
794
Forks
68
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

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.

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.