Resolve #4448
This commit is contained in:
parent
5f4a52574f
commit
69df556ff5
1 changed files with 5 additions and 9 deletions
12
src/index.ts
12
src/index.ts
|
@ -117,9 +117,6 @@ async function masterMain() {
|
|||
await spawnWorkers(config.clusterLimit);
|
||||
}
|
||||
|
||||
// start queue
|
||||
require('./queue').default();
|
||||
|
||||
bootLogger.succ(`Now listening on port ${config.port} on ${config.url}`, null, true);
|
||||
}
|
||||
|
||||
|
@ -130,6 +127,9 @@ async function workerMain() {
|
|||
// 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');
|
||||
|
@ -150,13 +150,9 @@ async function queueMain() {
|
|||
bootLogger.succ('Misskey initialized');
|
||||
|
||||
// start processor
|
||||
const queue = require('./queue').default();
|
||||
require('./queue').default();
|
||||
|
||||
if (queue) {
|
||||
bootLogger.succ('Queue started', null, true);
|
||||
} else {
|
||||
bootLogger.error('Queue not available');
|
||||
}
|
||||
}
|
||||
|
||||
const runningNodejsVersion = process.version.slice(1).split('.').map(x => parseInt(x, 10));
|
||||
|
|
Loading…
Reference in a new issue