deanpcmad--sidekiq-limit_fetch/demo
brainopia 2f2330cd21 Support sidekiq 3.0 2014-03-23 22:26:02 +04:00
..
app/workers Add demo tasks for blocking and advanced blocking 2014-03-12 12:38:37 +04:00
config Simplify demo app 2013-10-03 16:59:12 +04:00
Gemfile Support sidekiq 3.0 2014-03-23 22:26:02 +04:00
README.md Small fix for demo readme 2014-02-26 10:56:58 +04:00
Rakefile Add demo tasks for blocking and advanced blocking 2014-03-12 12:38:37 +04:00

README.md

This is a demo rails app with a configured sidekiq-limit_fetch.

Its purpose is to check whether plugin works in certain situations.

Application is preconfigured with two workers:

  • app/workers/fast_worker.rb which does sleep 0.2
  • app/workers/slow_worker.rb which does sleep 1

There is also a rake task which can be invoked as bundle exec rake demo:limit:

  • it prefills sidekiq tasks
  100.times do
    SlowWorker.perform_async
    FastWorker.perform_async
  end
  • sets sidekiq config
  :verbose: false
  :concurrency: 4
  :queues:
    - slow
    - fast
  :limits:
    slow: 1
  • and launches a sidekiq admin page with overview of queues in browser. The page is set to live-poll so effects of limits can be seen directly.

To change simulation modify Rakefile or workers.

Any bugs related to the plugin should be demonstrated with a reproduction from this base app.