diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2019-03-08 05:39:59 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2019-03-08 05:39:59 +0900 |
| commit | 144345a35960bbbf7cb21fd7ab06e89e010ddd4c (patch) | |
| tree | 6897e03f3898d999581a8655555d33283bcee0cf /src/queue | |
| parent | Increase job concurrency (diff) | |
| download | sharkey-144345a35960bbbf7cb21fd7ab06e89e010ddd4c.tar.gz sharkey-144345a35960bbbf7cb21fd7ab06e89e010ddd4c.tar.bz2 sharkey-144345a35960bbbf7cb21fd7ab06e89e010ddd4c.zip | |
Enable lifo job
Diffstat (limited to 'src/queue')
| -rw-r--r-- | src/queue/index.ts | 2 |
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 }); |