Skip to content

Non blocking Python Clients #43

Description

@marco-buttu

If the manager is offline, then a Python client istantiation is blocking:

>>> from Acspy.Clients.SimpleClient import PySimpleClient
>>> client = PySimpleClient()
Acspy.Util.ACSCorba._Client.__init__ - manager is not available.
      This method will block until manager comes online!

But I would like to do something in this case (for instance, I would like the user to be aware of this), so currently, before to get the client, I am verifying the manager is online . Something like this:

>>> from Acspy.Util.ACSCorba import getManager
>>> if getManager():
...     client = PySimpleClient()

But these instructions are not atomc, so this approach is not reliable. What do you think about having a non blocking PySimpleClient()?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions