parent
4982ea8f14
commit
d3b3426ebe
2 changed files with 35 additions and 1 deletions
|
@ -100,6 +100,9 @@ async function workerMain() {
|
|||
// start server
|
||||
await require('./server').default();
|
||||
|
||||
// start processor
|
||||
require('./queue').default();
|
||||
|
||||
if (cluster.isWorker) {
|
||||
// Send a 'ready' message to parent process
|
||||
process.send('ready');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue