From 144345a35960bbbf7cb21fd7ab06e89e010ddd4c Mon Sep 17 00:00:00 2001 From: syuilo Date: Fri, 8 Mar 2019 05:39:59 +0900 Subject: [PATCH] Enable lifo job --- src/queue/index.ts | 2 ++ 1 file changed, 2 insertions(+) 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 });