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
# this is how long an insert will take to timeout for, so we wait at most this time +5s for the batch to finish after shutdown is initiated, in case the server never hangs up
Copy file name to clipboardExpand all lines: weaviate/collections/batch/sync.py
+29-12Lines changed: 29 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,6 @@
10
10
11
11
fromweaviate.collections.batch.baseimport (
12
12
GCP_STREAM_TIMEOUT,
13
-
SHUTDOWN_TIMEOUT,
14
13
ObjectsBatchRequest,
15
14
ReferencesBatchRequest,
16
15
_BatchDataWrapper,
@@ -158,14 +157,16 @@ def _start(self) -> None:
158
157
)
159
158
160
159
def_wait(self) ->None:
161
-
deadline=time.time() +SHUTDOWN_TIMEOUT
160
+
# this is how long an insert will take to timeout for, so we wait at most this time +5s for the batch to finish after shutdown is initiated, in case the server never hangs up
0 commit comments