seomoz / qless-core

Core Lua Scripts for qless
MIT License
85 stars 33 forks source link

Provide a means for pausing workers #2

Closed myronmarston closed 11 years ago

myronmarston commented 11 years ago

I talked this over with @dlecocq. Documenting here so we don't forget the conversation:

Dan suggested implementing rate limiting as a more flexible, useful mechanism that could also be used to pause workers (i.e. by setting the rate to 0 for a particular queue). Rate limiting is a much larger, more complex feature, though, so we decided that for now we can implement a simple pause/unpause API, and if/when we add rate limiting in the future, the implementation of that API can change to use rate limiting underneath.

Suggested API:

pause_queues("q1", "q2")
unpause_queues("q1", "q2")
myronmarston commented 11 years ago

Fixed by #3.