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

Feature request: Ability to change interval and intervalCap at runtime #177

Open
galaczi opened this issue Feb 21, 2023 · 1 comment
Open

Comments

@galaczi
Copy link

galaczi commented Feb 21, 2023

As far as I can tell currently there is no way to change the interval and/or intervalCap at runtime. Is there any chance for this to be implemented?

The current solution is great if you know in advance that you want to run tasks at a steady rate. However, in more dynamic use cases changing interval or intervalCap would be very useful.

@nemphys
Copy link

nemphys commented Dec 14, 2023

+1
In my use case, I am checking for some kind of cancellation condition during task runs and, based on that, I need to be able to cancel (fast-forward) the queue if the condition is true. The problem is that this queue needs an interval cap, which is still applied during fast-forwarding, leading to a considerable delay before the queue is flushed.

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

2 participants