Giter VIP home page Giter VIP logo

Comments (4)

mdumandag avatar mdumandag commented on May 24, 2024

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.

GuyPaddock avatar GuyPaddock commented on May 24, 2024

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.

Kilo59 avatar Kilo59 commented on May 24, 2024

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.

mdumandag avatar mdumandag commented on May 24, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.