deanpcmad / sidekiq-limit_fetch

A Sidekiq plugin to support advanced queue control (limiting, pausing, blocking, querying)
MIT License
948 stars 140 forks source link

Compatibility with sidekiq-dynamic-queues #18

Closed Sephi-Chan closed 11 years ago

Sephi-Chan commented 11 years ago

Hello,

I tried to use sidekiq-limit_fetch with sidekiq-dynamic-queues and it didn't work: the limit is not applied.

Do you know if it would be possible to use them together?

My use case is a webgame where some tasks must be completely isolated from each other. For instance, each fight needs to have its own queue (like fights.42) so there is no concurrency problem between orders issued by the players.

For now, I use only sidekiq-limit_fetch and I my Sidekiq server explicitly process the queues fights.1 to fights.3, and each fight-related job is randomly sent on one of theses queues. It does the job (ah ah) but it's not optimal).

However thanks for this great plugin!

brainopia commented 11 years ago

Hi, unfortunately both plugins are trying to hook into Sidekiq by changing a fetcher, so it results in the conflict. There is no general solution to combine them :(

Sephi-Chan commented 11 years ago

It's what I though reading the code of both gems. So I suppose I'll stick with my current solution. :p

Thanks for your word!