Remove QueueScheduler usage (avoid SSR runtime error)

This commit is contained in:
2026-05-16 14:41:06 +02:00
parent 1b31a4a131
commit 5f5a48067c
+1 -2
View File
@@ -1,5 +1,5 @@
import pkg from "bullmq";
const { Queue, Worker, QueueScheduler } = pkg as any;
const { Queue, Worker } = pkg as any;
import IORedis from "ioredis";
import { OpenRouterClient } from "./openrouter";
import { TradingGraph } from "../agents/tradingGraph";
@@ -11,7 +11,6 @@ const connection = process.env.REDIS_URL ? { connection: process.env.REDIS_URL }
const redis = process.env.REDIS_URL ? new IORedis(process.env.REDIS_URL) : new IORedis();
export const analyzeQueue = new Queue("analyze", { connection: redis });
export const queueScheduler = new QueueScheduler("analyze", { connection: redis });
// Worker to process analyze jobs
export const worker = new Worker(