Comments (4)
Hi @GuyPaddock
Client Properties will be available in the next release which will allow you to specify the invocation timeout like below (See #115 )
import hazelcast
from hazelcast.config import ClientProperties
config = hazelcast.ClientConfig()
config.set_property(ClientProperties.INVOCATION_TIMEOUT_SECONDS.name, 200)
client = hazelcast.HazelcastClient(config)
However, this timeout value will be used for all of the invocations. Ability to specify a timeout for each request requires an API change so I am not sure if we can implement that in the near future. @asimarslan What do you think ?
Next release should be out very soon but for the time being you can use the master branch. This feature is already merged.
from hazelcast-python-client.
The current solution in master
sounds like it will work for my needs; being able to tune it per-request is kind of a nice-to-have but not strictly required.
Many thanks!
from hazelcast-python-client.
Is is possible the have requests that wait indefinitely if the INVOCATION_TIMEOUT_SECONDS
is not set?
queue.take()
or map.lock("foo", 200)
Has this been implemented, should this issue be closed?
from hazelcast-python-client.
Hi @Kilo59 , timeout per invocation is not implemented yet. It requires a huge API change and we tend to do these kind of changes first on the Java client and then other clients follow it. As far as I know, there is no plan to have this kind of feature on the Java client so I can say that this won't be available in the near future for the Python client.
The issue is still open because the product management team may consider prioritizing this feature if there are enough requests coming from the community.
from hazelcast-python-client.
Related Issues (20)
- Unable to recreate an IAtomicLong object with the same name [AtomicValue[myIAtomicLong] is already destroyed!] HOT 1
- Extreme slow down when using Map#lock/unlock from multiple threads [API-1968] HOT 2
- [TRACKING ISSUE] Do not try to connect to the old member list after the cluster changes [API-2038] HOT 1
- how to define long varchar in hazelcast python client? HOT 7
- [TRACKING ISSUE] Introduce a property to control the reconnection behavior of the client [API-2036]
- Reporting a vulnerability
- Make HazelcastClient context manager aware (PEP-343)
- PythonObjectSerializer raise 'utf-8' codec can't decode byte HOT 2
- [TRACKING ISSUE] [TPC] Allow TLS sockets in TPC Bootstrapping [HZ-2764]
- Potential memory leak: lock not removed from proxies when the lock is destroyed [API-2129] HOT 1
- [TRACKING ISSUE] Make tpcEnable for client configurable through system property.
- [TRACKING ISSUE] Promote alto auth codecs to stable [API-2134]
- [TRACKING ISSUE] TPC default to 1 connection
- [TRACKING ISSUE] Fix the `ReliableTopicConfig.setName` method to allow empty names [HZ-2274] [API-2172]
- [TRACKING ISSUE] Continue trying if initial membership event retrieval fails and client is failover [API-2171]
- [TRACKING ISSUE] NearCachedClientMapProxy getAsync fix double invocation [API-1811]
- `linter_docs_mypy.yaml` action fails due to `Sphinx version error`
- Python client serializes paging preciate differently than Java and .Net causing 5.4 compatibility breaks
- [FEATURE] Create anaconda python package
- Error while trying to connect to IPv6 cluster
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hazelcast-python-client.