summaryrefslogtreecommitdiff
path: root/src/queue/index.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/queue/index.ts')
-rw-r--r--src/queue/index.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/queue/index.ts b/src/queue/index.ts
index 01dd020d93..c7b7f0392c 100644
--- a/src/queue/index.ts
+++ b/src/queue/index.ts
@@ -71,6 +71,7 @@ export function deliver(user: ThinUser, content: unknown, to: string | null) {
return deliverQueue.add(data, {
attempts: config.deliverJobMaxAttempts || 12,
+ timeout: 1 * 60 * 1000, // 1min
backoff: {
type: 'exponential',
delay: 60 * 1000
@@ -88,6 +89,7 @@ export function inbox(activity: IActivity, signature: httpSignature.IParsedSigna
return inboxQueue.add(data, {
attempts: config.inboxJobMaxAttempts || 8,
+ timeout: 5 * 60 * 1000, // 5min
backoff: {
type: 'exponential',
delay: 60 * 1000