-
Notifications
You must be signed in to change notification settings - Fork 0
g.begin()
should work even if DBSVR is unreachable
#24
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
Comments
i'll add some release notes |
If we default to None then rather than "" then that means we do not clear a previous sample par value on a simple |
The sample parameter values are actually in the DAE ioc - is it just a name mapping it reads from DBSRV? Is it worth caching this lookup? |
Yes I think that's right - genie/src/genie_python/genie_epics_api.py Lines 619 to 635 in 925f743
|
@FreddieAkeroyd are you happy with the change in behaviour or want me to investigate other approaches e.g. more caching, or just hard-coded fallbacks? |
I pushed a simple caching - does that look OK? I am in two minds about the |
I guess the tradeoff is even with a cache we depend on DBSVR being up for at least the first |
the first begin should be from a user initiated action, so hopefully obvious to somebody at that point if it doesn't work. I think the original change you suggested may be good to have too, i was just cautious about the change in behaviour and accidentally propagating values to future runs that may not be related, hence a bit of prior investigation. |
Uh oh!
There was an error while loading. Please reload this page.
As a user on WISH I'd like to be able to begin a run.
WISH's DBSVR fell over, usually this should not be critical, but it was causing a failure during
g.begin()
.Here we set defaults for various sample parameters to
""
(empty string):genie/src/genie_python/genie.py
Lines 792 to 794 in c4c5871
Here we check those values against
None
and set themif not None
genie/src/genie_python/genie_dae.py
Lines 325 to 327 in c4c5871
This means that an argument-less
g.begin()
depends on the DBSVR being up.Probably the correct fix is to default the pars in
genie.py
level toNone
rather than empty stringAcceptance criteria
g.begin()
should begin a run even with a DBSVR that's downThe text was updated successfully, but these errors were encountered: