feat(worker): forward queue + processor with 20/min rate limiter

This commit is contained in:
2026-05-27 17:23:08 +05:30
parent 57a06bc517
commit 5ad33fd416
3 changed files with 91 additions and 0 deletions
+9
View File
@@ -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),
});
}