Add --disable-queue option
This commit is contained in:
parent
d3b3426ebe
commit
0ae1190c08
2 changed files with 3 additions and 1 deletions
|
@ -3,8 +3,9 @@ import config from '../config';
|
|||
import http from './processors/http';
|
||||
import { ILocalUser } from '../models/user';
|
||||
import Logger from '../misc/logger';
|
||||
import { program } from '../argv';
|
||||
|
||||
const enableQueue = config.redis != null;
|
||||
const enableQueue = config.redis != null && !program.disableQueue;
|
||||
|
||||
const queue = new Queue('misskey', {
|
||||
redis: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue