Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only connect to device PVs on use #174

Open
nneveu opened this issue Jul 10, 2024 · 1 comment
Open

Only connect to device PVs on use #174

nneveu opened this issue Jul 10, 2024 · 1 comment

Comments

@nneveu
Copy link
Member

nneveu commented Jul 10, 2024

Is your feature request related to a problem? Please describe.
Taking from discussion on PR#144:
When the device objects are created for an area/beampath, there is an attempt to connect to the PVs on creation.
This can cause tests and code under development to hang when offline. On start up of applications with many PVs, this causes a slow down.

Describe the solution you'd like
It could be a potential feature to only connect on use and to periodically poll the connection status of the PV object to ensure the user is warned when a PV becomes disconnected from the controls network. Robust warning/errors should be built in to notify users when PVs are disconnected or not available.

Describe alternatives you've considered
If simulacrum were fully developed, we could avoid hangs with 'fake' PVs.

Additional context
Timeline for simulacrum development is unclear.

@nneveu
Copy link
Member Author

nneveu commented Aug 2, 2024

Add class variable that flags connect on PV creation or not. i.e. in device class.
Can use before and after validators to do this? Then when an area or beam line is created not all PVs are connected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant