Skip to content

Reset counter after processing requests#95

Merged
clokep merged 8 commits intoclokep:mainfrom
FilipKarpinski:patch-1
Apr 4, 2025
Merged

Reset counter after processing requests#95
clokep merged 8 commits intoclokep:mainfrom
FilipKarpinski:patch-1

Conversation

@FilipKarpinski
Copy link
Contributor

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
Contributor Author

Test added.

@clokep
Copy link
Owner

clokep commented Oct 31, 2024

Looks like the test might not be fully working?

Filip Karpinski and others added 2 commits November 4, 2024 16:47
@FilipKarpinski
Copy link
Contributor Author

Seems like it works fine now

@clokep clokep merged commit 4719b50 into clokep:main Apr 4, 2025
9 checks passed
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