Skip to content

Commit 51551fb

Browse files
Use an unbuffered queue for the sync bulk helper (elastic#3129) (elastic#3133)
(cherry picked from commit 64f11cd) Co-authored-by: Miguel Grinberg <[email protected]>
1 parent f9fea5b commit 51551fb

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)