You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: templates/python/ingestion_helpers.mustache
+18-7Lines changed: 18 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -11,6 +11,7 @@
11
11
"""
12
12
Helper: Chunks the given `objects` list in subset of 1000 elements max in order to make it fit in `push` requests by leveraging the Transformation pipeline setup in the Push connector (https://www.algolia.com/doc/guides/sending-and-managing-data/send-and-update-your-data/connectors/push/).
13
13
"""
14
+
offset = 0
14
15
records: List[PushTaskRecords] = []
15
16
responses: List[WatchResponse] = []
16
17
wait_batch_size = batch_size // 10
@@ -20,7 +21,7 @@
20
21
records.append(obj) # pyright: ignore
21
22
if len(records) == batch_size or i == len(objects) - 1:
0 commit comments