Skip to content

Commit de95047

Browse files
committed
expose concurrency env vars
1 parent 6621351 commit de95047

File tree

1 file changed

+3
-2
lines changed
  • src/executors/external-bundler-async

1 file changed

+3
-2
lines changed

src/executors/external-bundler-async/index.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ import {
3030
isAccountDeploying,
3131
setAccountDeploying,
3232
} from "./state";
33+
import { env } from "../../lib/env";
3334

3435
// todo: export these from SDK
3536
export type PostOpRevertReasonEventFilters = Partial<{
@@ -352,7 +353,7 @@ export const sendWorker = new Worker<ExecutionRequest, SendResult>(
352353
},
353354
{
354355
connection: redis,
355-
concurrency: 100,
356+
concurrency: env.SEND_TRANSACTION_QUEUE_CONCURRENCY,
356357
settings: {
357358
backoffStrategy: (attemptsMade: number) => {
358359
if (attemptsMade === 1) return 2000; // First check after 2s
@@ -545,7 +546,7 @@ export const confirmWorker = new Worker<SendResult, ConfirmationResult>(
545546
},
546547
{
547548
connection: redis,
548-
concurrency: 500,
549+
concurrency: env.CONFIRM_TRANSACTION_QUEUE_CONCURRENCY,
549550
settings: {
550551
backoffStrategy: (attemptsMade: number) => {
551552
if (attemptsMade === 1) return 2000; // First check after 2s

0 commit comments

Comments
 (0)