Skip to content

Commit

Permalink
fix(deployer): use parallel_bulk() with single thread
Browse files Browse the repository at this point in the history
  • Loading branch information
caugner committed Jan 8, 2025
1 parent 3d2bcbc commit 46c61d3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion deployer/src/deployer/search/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,10 @@ def get_progressbar():
errors_counter = Counter()
t0 = time.time()
with get_progressbar() as bar:
for success, info in bulk(
for success, info in parallel_bulk(
connection,
generator(),
thread_count=1,
# If the bulk indexing failed, it will by default raise a BulkIndexError.
# Setting this to 'False' will suppress that.
raise_on_exception=False,
Expand Down

0 comments on commit 46c61d3

Please sign in to comment.