summaryrefslogtreecommitdiff
path: root/src/queue
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2019-03-08 05:39:59 +0900
committersyuilo <syuilotan@yahoo.co.jp>2019-03-08 05:39:59 +0900
commit144345a35960bbbf7cb21fd7ab06e89e010ddd4c (patch)
tree6897e03f3898d999581a8655555d33283bcee0cf /src/queue
parentIncrease job concurrency (diff)
downloadsharkey-144345a35960bbbf7cb21fd7ab06e89e010ddd4c.tar.gz
sharkey-144345a35960bbbf7cb21fd7ab06e89e010ddd4c.tar.bz2
sharkey-144345a35960bbbf7cb21fd7ab06e89e010ddd4c.zip
Enable lifo job
Diffstat (limited to 'src/queue')
-rw-r--r--src/queue/index.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/queue/index.ts b/src/queue/index.ts
index 01c02c7081..d5294f8367 100644
--- a/src/queue/index.ts
+++ b/src/queue/index.ts
@@ -40,6 +40,7 @@ export function deliver(user: ILocalUser, content: any, to: any) {
type: 'exponential',
delay: 1000
},
+ lifo: true,
removeOnComplete: true,
removeOnFail: true
});
@@ -57,6 +58,7 @@ export function inbox(activity: any, signature: httpSignature.IParsedSignature)
type: 'exponential',
delay: 1000
},
+ lifo: true,
removeOnComplete: true,
removeOnFail: true
});