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>
This commit is contained in:
MeiMei
2021-08-20 21:59:03 +09:00
committed by GitHub
parent 0e69091455
commit bb2db1cf76
3 changed files with 21 additions and 7 deletions

View File

@@ -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