uber-archive / nanny

Cluster management for Node processes
http://www.uber.com
MIT License
40 stars 4 forks source link

Worker code in require.main won't run #9

Closed leizha closed 10 years ago

leizha commented 10 years ago

Worker is not main when started by cluster

if (require.main === module) { }

kriskowal commented 10 years ago

Thanks. I will ponder a way to trick it.