mirror of
https://github.com/outline/outline.git
synced 2025-12-30 07:19:52 -06:00
chore(queues): use Second from @shared/utils/time (#10031)
This commit is contained in:
@@ -1,10 +1,11 @@
|
||||
import { createQueue } from "@server/queues/queue";
|
||||
import { Second } from "@shared/utils/time";
|
||||
|
||||
export const globalEventQueue = createQueue("globalEvents", {
|
||||
attempts: 5,
|
||||
backoff: {
|
||||
type: "exponential",
|
||||
delay: 1000,
|
||||
delay: Second.ms,
|
||||
},
|
||||
});
|
||||
|
||||
@@ -12,18 +13,18 @@ export const processorEventQueue = createQueue("processorEvents", {
|
||||
attempts: 5,
|
||||
backoff: {
|
||||
type: "exponential",
|
||||
delay: 10 * 1000,
|
||||
delay: 10 * Second.ms,
|
||||
},
|
||||
});
|
||||
|
||||
export const websocketQueue = createQueue("websockets", {
|
||||
timeout: 10 * 1000,
|
||||
timeout: 10 * Second.ms,
|
||||
});
|
||||
|
||||
export const taskQueue = createQueue("tasks", {
|
||||
attempts: 5,
|
||||
backoff: {
|
||||
type: "exponential",
|
||||
delay: 10 * 1000,
|
||||
delay: 10 * Second.ms,
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user