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

Pacing additions #483

Merged
merged 4 commits into from
Jul 12, 2024
Merged

Pacing additions #483

merged 4 commits into from
Jul 12, 2024

Conversation

Ktmi
Copy link

@Ktmi Ktmi commented Jul 3, 2024

Summary

This PR adds additional tools to pacing, that weren't originally considered.
So far, this adds:

  • ignore_pace strategy, which ignores the pace, and always lets the action execute.
  • is_configured for checking if the pace for a given action has been

One potential inclusion to this PR is logging when the limit is reached. The reason it hasn't been included yet, is that this can quickly end up filling the log, when many actions with the same keys are queued.

Local Tests

Everything seem to be working well here.

End-to-End Tests

Haven't conducted yet.

@Ktmi Ktmi requested a review from a team as a code owner July 3, 2024 21:08
Copy link
Member

@viniarck viniarck left a comment

Choose a reason for hiding this comment

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

@Ktmi, great. I'll leave it pre-approved. Please add the code comment (no need for log in this case) before merging though. After that, feel free to merge it.

kytos/core/pacing.py Show resolved Hide resolved
@Ktmi Ktmi merged commit 76a3667 into master Jul 12, 2024
2 checks passed
@Ktmi Ktmi deleted the feat/ignore_pace branch July 12, 2024 20:31
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