diff options
| author | MeiMei <30769358+mei23@users.noreply.github.com> | 2021-08-20 21:59:03 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-08-20 21:59:03 +0900 |
| commit | bb2db1cf76a94af9133017897db5e4952b0d1532 (patch) | |
| tree | d81835924f4ae3b49b7590a41be2b6148a8a3354 /src/queue/index.ts | |
| parent | doc: add features/word-mute (#7672) (diff) | |
| download | sharkey-bb2db1cf76a94af9133017897db5e4952b0d1532.tar.gz sharkey-bb2db1cf76a94af9133017897db5e4952b0d1532.tar.bz2 sharkey-bb2db1cf76a94af9133017897db5e4952b0d1532.zip | |
perf: Tune AP job queue timings (#7635)
* perf: Tune AP job queue timings
* CHANGELOG
* chore: add reference
Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
Diffstat (limited to 'src/queue/index.ts')
| -rw-r--r-- | src/queue/index.ts | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/queue/index.ts b/src/queue/index.ts index 2facd9c8e1..ff96c0fb15 100644 --- a/src/queue/index.ts +++ b/src/queue/index.ts @@ -73,8 +73,7 @@ export function deliver(user: ThinUser, content: unknown, to: string | null) { attempts: config.deliverJobMaxAttempts || 12, timeout: 1 * 60 * 1000, // 1min backoff: { - type: 'exponential', - delay: 60 * 1000 + type: 'apBackoff' }, removeOnComplete: true, removeOnFail: true @@ -91,8 +90,7 @@ export function inbox(activity: IActivity, signature: httpSignature.IParsedSigna attempts: config.inboxJobMaxAttempts || 8, timeout: 5 * 60 * 1000, // 5min backoff: { - type: 'exponential', - delay: 60 * 1000 + type: 'apBackoff' }, removeOnComplete: true, removeOnFail: true |