Skip to content

fix #491: read() returns ReadResult with ReadStatus instead of silent#497

Merged
pradeeban merged 1 commit intoControlCore-Project:devfrom
avinxshKD:fix/read-status-wrapper
Mar 9, 2026
Merged

fix #491: read() returns ReadResult with ReadStatus instead of silent#497
pradeeban merged 1 commit intoControlCore-Project:devfrom
avinxshKD:fix/read-status-wrapper

Conversation

@avinxshKD
Copy link

Every failure path in read(), file missing, empty after retries, parse error, ZMQ timeout.... returned the same default list with no way for the caller to know why. In a control loop that's a silent bug: stale data looks like real data.

Added ReadStatus enum and ReadResult wrapper. Both file and ZMQ read() paths updated. Tests for each failure case included

closes #491

@avinxshKD
Copy link
Author

@pradeeban pls take a look,
image

@pradeeban pradeeban merged commit b63d04a into ControlCore-Project:dev Mar 9, 2026
6 checks passed
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

Successfully merging this pull request may close these issues.

2 participants