chore(queues): use Second from @shared/utils/time (#10031)

This commit is contained in:
vlad
2025-08-31 12:23:43 +02:00
committed by GitHub
parent 7f818c7329
commit f614f3dd3f

View File

@@ -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,
},
});