Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
master Set job_batch_size at least equal to max_parallelism
Signed-off-by: James Crabtree <james.crabtree@sailpoint.com>
  • Loading branch information
james-crabtree-sp committed Oct 23, 2023
commit cbda2bfbefb5b02a39f1340ee3629d77b1c2b315
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,11 @@ def _materialize_one(
batch_size = self.batch_engine_config.job_batch_size
if batch_size < 1:
raise ValueError("job_batch_size must be a value greater than 0")
if batch_size < self.batch_engine_config.max_parallelism:
logger.warning(
"job_batch_size is less than max_parallelism. Setting job_batch_size = max_parallelism"
)
batch_size = self.batch_engine_config.max_parallelism

while True:
next_offset = min(offset + batch_size, total_pods)
Expand Down