1
0
Fork 0
mirror of https://github.com/deanpcmad/sidekiq-limit_fetch.git synced 2022-11-09 13:54:36 -05:00
deanpcmad--sidekiq-limit_fetch/demo
dany1468 74f8d281fb Fix demo app
- Remove unnecessary gems
- Fix Sidekiq Web URL
2016-12-09 18:11:56 +09: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 Fix demo app 2016-12-09 18:11:56 +09:00
Rakefile Fix demo app 2016-12-09 18:11:56 +09:00
README.md Small fix for demo readme 2014-02-26 10:56:58 +04:00

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.