diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2019-02-04 13:37:50 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2019-02-04 13:37:50 +0900 |
| commit | 0ae1190c080322c801e2b4361074fd4a9d4f1dba (patch) | |
| tree | 48be789d4a6831e6c46eb155e2453c4d5106348d /src/queue | |
| parent | Enable job queue (diff) | |
| download | sharkey-0ae1190c080322c801e2b4361074fd4a9d4f1dba.tar.gz sharkey-0ae1190c080322c801e2b4361074fd4a9d4f1dba.tar.bz2 sharkey-0ae1190c080322c801e2b4361074fd4a9d4f1dba.zip | |
Add --disable-queue option
Diffstat (limited to 'src/queue')
| -rw-r--r-- | src/queue/index.ts | 3 |
1 files changed, 2 insertions, 1 deletions
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: { |