From f614f3dd3fade5e13c0a4e0074943c86a5802a90 Mon Sep 17 00:00:00 2001 From: vlad Date: Sun, 31 Aug 2025 12:23:43 +0200 Subject: [PATCH] chore(queues): use `Second` from `@shared/utils/time` (#10031) --- server/queues/index.ts | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/server/queues/index.ts b/server/queues/index.ts index 3506d4575f..a957703ae1 100644 --- a/server/queues/index.ts +++ b/server/queues/index.ts @@ -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, }, });