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

Reset counter after processing requests #95

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

FilipKarpinski
Copy link

In current implementation, when flush is caused by time interval, the counter does not reset, so if i set flush_every=2 and schedule 1 task and then it is processed after time interval, scheduling next task immediately after causes processing to trigger. It would make more logical sense to trigger only after 2 message occur again.

In current implementation, when flush is caused by time interval, the counter does not reset, so if i set flush_every=2, i schedule 1 task and then it is processed after time interval, scheduling next task immediately after causes processing to trigger. It would make more logical sense to trigger only after 2 message occur again.
@clokep
Copy link
Owner

clokep commented Oct 18, 2024

Can you please add a unit test?

@FilipKarpinski
Copy link
Author

Test added.

@clokep
Copy link
Owner

clokep commented Oct 31, 2024

Looks like the test might not be fully working?

@FilipKarpinski
Copy link
Author

Seems like it works fine now

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