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:
parent
0e69091455
commit
bb2db1cf76
3 changed files with 21 additions and 7 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue