mirror of
https://github.com/versia-pub/server.git
synced 2026-04-27 20:59:15 +02:00
feat(federation): ✨ Add config option to control automatic queue purge time
This commit is contained in:
parent
048dd6b0ab
commit
61b773ed11
4 changed files with 132 additions and 2 deletions
20
worker.ts
20
worker.ts
|
|
@ -104,7 +104,15 @@ export const deliveryWorker = new Worker<
|
|||
}
|
||||
}
|
||||
},
|
||||
{ connection },
|
||||
{
|
||||
connection,
|
||||
removeOnComplete: {
|
||||
age: config.queues.delivery.remove_on_complete,
|
||||
},
|
||||
removeOnFail: {
|
||||
age: config.queues.delivery.remove_on_failure,
|
||||
},
|
||||
},
|
||||
);
|
||||
|
||||
export const inboxWorker = new Worker<InboxJobData, Response, InboxJobType>(
|
||||
|
|
@ -242,5 +250,13 @@ export const inboxWorker = new Worker<InboxJobData, Response, InboxJobType>(
|
|||
}
|
||||
}
|
||||
},
|
||||
{ connection, removeOnComplete: { count: 0 } },
|
||||
{
|
||||
connection,
|
||||
removeOnComplete: {
|
||||
age: config.queues.inbox.remove_on_complete,
|
||||
},
|
||||
removeOnFail: {
|
||||
age: config.queues.inbox.remove_on_failure,
|
||||
},
|
||||
},
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue