diff options
Diffstat (limited to 'src/boot/worker.ts')
| -rw-r--r-- | src/boot/worker.ts | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/src/boot/worker.ts b/src/boot/worker.ts deleted file mode 100644 index 362fa3f26b..0000000000 --- a/src/boot/worker.ts +++ /dev/null @@ -1,20 +0,0 @@ -import * as cluster from 'cluster'; -import { initDb } from '../db/postgre'; - -/** - * Init worker process - */ -export async function workerMain() { - await initDb(); - - // start server - await require('../server').default(); - - // start job queue - require('../queue').default(); - - if (cluster.isWorker) { - // Send a 'ready' message to parent process - process.send!('ready'); - } -} |