node-rate-limiter icon indicating copy to clipboard operation
node-rate-limiter copied to clipboard

Any way to force a task to the front of the queue?

Open Kinzi opened this issue 7 years ago • 1 comments

I have to limit requests by user. Let's say a user has a queue with 10 background tasks lined up. Is there a way to push a single manual request to the top of the queue so it get's executed next before the rest of the background jobs?

Kinzi avatar Jan 30 '18 11:01 Kinzi

Right now it is first come first serve. I would be open to a new method that adds a task to the front of the list instead of the back if it gets rate limited.

jhurliman avatar Apr 17 '18 05:04 jhurliman