File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
internal-packages/run-engine/src/batch-queue
packages/redis-worker/src/fair-queue Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -660,7 +660,7 @@ export class BatchQueue {
660660 break ;
661661 }
662662 this . rateLimitDeniedCounter ?. add ( 1 ) ;
663- const waitMs = Math . max ( 0 , ( result . resetAt ?? Date . now ( ) ) - Date . now ( ) ) ;
663+ const waitMs = Math . max ( 10 , ( result . resetAt ?? Date . now ( ) ) - Date . now ( ) ) ;
664664 if ( waitMs > 0 ) {
665665 await new Promise < void > ( ( resolve , reject ) => {
666666 const onAbort = ( ) => {
Original file line number Diff line number Diff line change @@ -453,7 +453,7 @@ export interface FairQueueOptions<TPayloadSchema extends z.ZodTypeAny = z.ZodUnk
453453 * the queue is at or above this limit. This prevents unbounded worker queue
454454 * growth which could cause visibility timeouts (claimed messages have a
455455 * visibility timeout that ticks while they sit in the worker queue).
456- * Requires `workerQueueId ` to know which queue to check.
456+ * Requires `workerQueueDepthCheckId ` to know which queue to check.
457457 * Disabled by default (0 = no limit).
458458 */
459459 workerQueueMaxDepth ?: number ;
You can’t perform that action at this time.
0 commit comments