Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
sidekiq does not read config/sidekiq.yml by default #1481
According to the documentation here https://github.com/mperham/sidekiq/wiki/Advanced-Options :
it's safe to assume that sidekiq is supposed to read in this file if it does exist without having to specify it via the "-C" switch. Right?
Because as far as I can see, it does not do that:
I created a new rails project with rails 3.2.13 and ran bundle install which installed sidekiq v 2.17.4.
class DummyWorker include Sidekiq::Worker sidekiq_options queue: 'foobar' def perform raise '!!! In DummyWorker, calling "perform" !!!' end end
:queues: - default - foobar
Now I start sidekiq like this:
And I enqueue the job manually via console:
-> Looking at my sidekiq log, nothing happens.
Now I stop my workers (ctrl + c), do a "redis-cli flushdb" and restart my workers like this:
I enqueue another job and I can see the exception from above in my logs.
Am I missing something here or is this a bug / documentation error?