Skip to content

Consider attribute error as valid attribute cache

Zbigniew Reszela requested to merge reszelaz/taurus:tango_exception_attr into develop

Attribute read or event errors are not considered when getting attribute value from cache. We can not check if the error got expired because we don't keep info on the error timestamp.

Errors are equally valid readout information as normal values, hence treat them equally. Store the error timestamp in order to check the cache expiration.

Tested with taurus form sys/tg_test/1/throw_exception. Before this MR the app startup needs extra 3 s (one polling cycle), with this path startup is 3 s faster.

@taurus-org this is ready for review and eventual integration. Thanks!

Merge request reports