We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0c7f870 commit fbb76d1Copy full SHA for fbb76d1
pinecone/grpc/future.py
@@ -30,8 +30,9 @@ def _sync_state(self, grpc_future):
30
if self.done():
31
return
32
33
- if grpc_future.running():
34
- self.set_running_or_notify_cancel()
+ if grpc_future.running() and not self.running():
+ if not self.set_running_or_notify_cancel():
35
+ grpc_future.cancel()
36
elif grpc_future.cancelled():
37
self.cancel()
38
elif grpc_future.done():
0 commit comments