mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-12-24 00:39:32 +09:00
Add --disable-queue option
This commit is contained in:
parent
d3b3426ebe
commit
0ae1190c08
@ -5,6 +5,7 @@ program
|
|||||||
.version(pkg.version)
|
.version(pkg.version)
|
||||||
.option('--no-daemons', 'Disable daemon processes (for debbuging)')
|
.option('--no-daemons', 'Disable daemon processes (for debbuging)')
|
||||||
.option('--disable-clustering', 'Disable clustering')
|
.option('--disable-clustering', 'Disable clustering')
|
||||||
|
.option('--disable-queue', 'Disable job queue')
|
||||||
.option('--quiet', 'Suppress all logs')
|
.option('--quiet', 'Suppress all logs')
|
||||||
.option('--verbose', 'Enable all logs')
|
.option('--verbose', 'Enable all logs')
|
||||||
.option('--slow', 'Delay all requests (for debbuging)')
|
.option('--slow', 'Delay all requests (for debbuging)')
|
||||||
|
@ -3,8 +3,9 @@ import config from '../config';
|
|||||||
import http from './processors/http';
|
import http from './processors/http';
|
||||||
import { ILocalUser } from '../models/user';
|
import { ILocalUser } from '../models/user';
|
||||||
import Logger from '../misc/logger';
|
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', {
|
const queue = new Queue('misskey', {
|
||||||
redis: {
|
redis: {
|
||||||
|
Loading…
Reference in New Issue
Block a user