mirror of
https://github.com/deanpcmad/sidekiq-limit_fetch.git
synced 2022-11-09 13:54:36 -05:00
74f8d281fb
- Remove unnecessary gems - Fix Sidekiq Web URL |
||
---|---|---|
.. | ||
app/workers | ||
config | ||
Gemfile | ||
Rakefile | ||
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 doessleep 0.2
app/workers/slow_worker.rb
which doessleep 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.