fix: rename queue from tower:ingest to tower-ingest (BullMQ v5 forbids colons)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -26,7 +26,7 @@ export async function processIngestJob(job: IngestJobData, prisma: any): Promise
|
|||||||
|
|
||||||
export function createIngestWorker(redisUrl: string, prisma: any): Worker<IngestJobData> {
|
export function createIngestWorker(redisUrl: string, prisma: any): Worker<IngestJobData> {
|
||||||
return new Worker<IngestJobData>(
|
return new Worker<IngestJobData>(
|
||||||
'tower:ingest',
|
'tower-ingest',
|
||||||
async (job) => processIngestJob(job.data, prisma),
|
async (job) => processIngestJob(job.data, prisma),
|
||||||
{ connection: parseRedisUrl(redisUrl) },
|
{ connection: parseRedisUrl(redisUrl) },
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -3,5 +3,5 @@ import { IngestJobData } from '@tower/types';
|
|||||||
import { parseRedisUrl } from './redis-connection';
|
import { parseRedisUrl } from './redis-connection';
|
||||||
|
|
||||||
export function createIngestQueue(redisUrl: string): Queue<IngestJobData> {
|
export function createIngestQueue(redisUrl: string): Queue<IngestJobData> {
|
||||||
return new Queue<IngestJobData>('tower:ingest', { connection: parseRedisUrl(redisUrl) });
|
return new Queue<IngestJobData>('tower-ingest', { connection: parseRedisUrl(redisUrl) });
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user