Closed mkozjak closed 8 years ago
If you're setting environment w/in the file it needs to be before you invoke coworkers()
. The environment variables are used as default options
in the coworkers(options)
factory method.
Thanks!
I just added a task to document these options, but you can also just use options instead of environment variables to disable clustering.
const app = coworkers({
cluster: false,
queueName: 'foo-queue',
// queueWorkerNum is not required.It is useful if you're using centralized logging and have multiple processes for a single consumer.
})
Hello!
How to completely disable forking the application?
Should this be enough?
console.log gets triggered five times. Am I doing something wrong?