Global Rate Limit
import { Queue } from 'bullmq';
// 1 job per second
await queue.setGlobalRateLimit(1, 1000);const { max, duration } = await queue.getGlobalRateLimit();const ttl = await queue.getRateLimitTtl();Remove Global Rate Limit
await queue.removeGlobalRateLimit();Read more:
Last updated
Was this helpful?