Skip to content

Implement retry logic for valve duration message - #203

Merged
micahwoodard merged 1 commit into
mainfrom
feat-ensure-retry-logic-for-valves
Oct 2, 2026
Merged

micahwoodard merged 1 commit into
mainfrom
feat-ensure-retry-logic-for-valves

Conversation

@bruno-f-cruz

Copy link
Copy Markdown
Member

This PR implements a retry logic in case one of the valves is not correctly set.
This is a known, very rare issue with the behavior board wherein, if two messages are sent back-to-back in rare instances, the second one gets lost. This PR attempts to circumvent this issue by ensuring the reply is acknowledged, and if not, it retries with a new message. If the same attempt fails 3 times, an error will be raised, as this is likely a different issue. We are planning some changes to the bonsai package to mitigate this hardware issue, but in the meantime, this is likely a good option we have to balance performance with reliability.

image

@micahwoodard I did not get a chance to test it, so make sure this makes sense to you and give it a test at the rigs to see if it works, especially in the PC that is giving you the most issues.

@micahwoodard

Copy link
Copy Markdown
Collaborator

@bruno-f-cruz this makes sense to me and I tested on 3c and didn't see any issues. I wasn't able to trigger the request/response qc error the three test sessions i ran though so

@micahwoodard
micahwoodard merged commit bbc7b03 into main Oct 2, 2026
4 checks passed
@bruno-f-cruz
bruno-f-cruz deleted the feat-ensure-retry-logic-for-valves branch October 2, 2026 17:15
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