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

New feature: push despite empty state #204

Merged

Conversation

fleborne
Copy link
Contributor

@fleborne fleborne commented Feb 18, 2025

The new state was pushed (from PyLuos objects to Gate) only if the Gate had sent back a network state.

I propose to add a parameter to allow bypassing this, by pushing the changes made on PyLuos objects even when no new state has been received from the Gate. The parameter added is push_despite_empty_state in pyluos.device.Device constructor.

The default behavior is left unchanged.

@nicolas-rabault
Copy link
Member

Because the Gate behavior has been modified we always have to push despite an empty state or we could have a locking situation (the same one you are in right now).
Years ago this mechanism was made to avoid overflowing the gate. Now gate is faster than the incoming data so we should be fine without the push_despite_empty_state flag.

@fleborne
Copy link
Contributor Author

Alright, I remove push_despite_empty_state.

Copy link
Member

@nicolas-rabault nicolas-rabault left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sounds good!

@nicolas-rabault nicolas-rabault merged commit 148052d into Luos-io:rc_3.1.0 Feb 19, 2025
@fleborne fleborne deleted the feat/push-despite-empty-state branch February 19, 2025 09:02
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