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.
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: