Skip to content

Commit

Permalink
🐛 concurrent-cdk: Do not set the max number of tasks to the number of…
Browse files Browse the repository at this point in the history
… workers (#32971)

Co-authored-by: girarda <[email protected]>
  • Loading branch information
girarda and girarda authored Nov 30, 2023
1 parent a6d463f commit 6671bce
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ def create(
timeout_seconds: int = DEFAULT_TIMEOUT_SECONDS,
) -> "ConcurrentSource":
threadpool = ThreadPoolManager(
concurrent.futures.ThreadPoolExecutor(max_workers=num_workers, thread_name_prefix="workerpool"), logger, num_workers
concurrent.futures.ThreadPoolExecutor(max_workers=num_workers, thread_name_prefix="workerpool"),
logger,
)
return ConcurrentSource(
threadpool, logger, slice_logger, message_repository, initial_number_of_partitions_to_generate, timeout_seconds
Expand Down

0 comments on commit 6671bce

Please sign in to comment.