closeio / tasktiger

Python task queue using Redis
MIT License
1.42k stars 80 forks source link

Add limit for maximum number of active workers per queue #94

Closed jkemp101 closed 5 years ago

jkemp101 commented 6 years ago

Replace existing single worker queue setting with a new setting that allows the maximum number of workers per queue. Setting this value to 1 would duplicate the existing single worker queue functionality.

Most likely depends on https://github.com/closeio/tasktiger/issues/93 to be completed first. Should also consider if a token bucket implementation would be better than semaphore locking.

jkemp101 commented 5 years ago

Implemented in https://github.com/closeio/tasktiger/pull/115