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

Implement "drop" and "replace" policy for actions #173

Open
erlingrj opened this issue Dec 13, 2024 · 0 comments
Open

Implement "drop" and "replace" policy for actions #173

erlingrj opened this issue Dec 13, 2024 · 0 comments

Comments

@erlingrj
Copy link
Collaborator

#170 added support for min spacing of events scheduled on actions. It uses the default "defer" policy to handle violations. LF also defines "drop" and "replace" which we should implement. "drop" is very simple, simply drop the event and return. "replace" requires us to search through the event queue to find the last (?) pending event of an action and the replace the payload of this event (also we must remember to free the old payload). This will require some addition to the EventQueue API, but nothing too bad.

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

No branches or pull requests

1 participant