#4601·bullmq

PG 后端: maximumBlockTimeout 是共享路径上的 Redis 衍生常量,因此空闲工作进程每 10 秒轮询一次

作者: MGrin创建于 2026年8月21日更新于 2026年8月29日
typescript
// IQueueBackend
readonly maximumBlockTimeout: number;

// worker.ts
get maximumBlockTimeout(): number {
  return this.backend.maximumBlockTimeout;
}

内容来源: taskforcesh/bullmq