Increase batch size for vacancies collecting task
All checks were successful
release / docker (push) Successful in 35s

This commit is contained in:
estromenko 2025-11-03 15:52:27 +03:00
parent 92c1d97727
commit c5cba30997

View File

@ -49,7 +49,7 @@ class Command(BaseCommand):
exist_points_set = tuple(set(exist_points_ids))
result_rows = clickhouse_client.query(query, parameters={"exist_points": exist_points_set}).result_rows
batch_size = 10
batch_size = 30
with ThreadPoolExecutor(max_workers=batch_size) as pool:
pool.map(self._process_batch, batched(result_rows, batch_size))