Skip to content

Commit 0048693

Browse files
Use an unbuffered queue for the sync bulk helper
1 parent f842d9b commit 0048693

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

elasticsearch/helpers/actions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ def _chunk_actions(
261261
yield ret
262262
else:
263263
item_queue: queue.Queue[_TYPE_BULK_ACTION_HEADER_WITH_META_AND_BODY] = (
264-
queue.Queue()
264+
queue.Queue(maxsize=1)
265265
)
266266

267267
def get_items() -> None:

0 commit comments

Comments
 (0)