From 0ae1190c080322c801e2b4361074fd4a9d4f1dba Mon Sep 17 00:00:00 2001 From: syuilo Date: Mon, 4 Feb 2019 13:37:50 +0900 Subject: Add --disable-queue option --- src/queue/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/queue/index.ts') diff --git a/src/queue/index.ts b/src/queue/index.ts index 5e5f9dae48..d1237435be 100644 --- a/src/queue/index.ts +++ b/src/queue/index.ts @@ -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: { -- cgit v1.2.3-freya