feat(worker): forward queue + processor with 20/min rate limiter
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
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),
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user