10 lines
313 B
TypeScript
10 lines
313 B
TypeScript
import { Queue } from 'bullmq';
|
|
import { ForwardJobData } from '@tower/types';
|
|
import { parseRedisUrl } from './redis-connection';
|
|
|
|
export function createForwardQueue(redisUrl: string): Queue<ForwardJobData> {
|
|
return new Queue<ForwardJobData>('tower-forward', {
|
|
connection: parseRedisUrl(redisUrl),
|
|
});
|
|
}
|