sidekiq does not read config/sidekiq.yml by default #1481

troessner opened this Issue Feb 14, 2014 · 1 comment


2 participants

According to the documentation here :

The Sidekiq configuration file is a YAML file that Sidekiq server uses to configure itself, by default located at config/sidekiq.yml


If you don't use the default location, use the -C flag to tell Sidekiq where the file is:

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.


cat app/workers/dummy_worker.rb

class DummyWorker
  include Sidekiq::Worker
  sidekiq_options queue: 'foobar'

  def perform
    raise '!!! In DummyWorker, calling "perform" !!!'

My config/sidekiq.yml:

cat config/sidekiq.yml

  - default
  - foobar

Now I start sidekiq like this:

bundle exec sidekiq

And I enqueue the job manually via console:


=> "3496385bb7f7d7134501c508"

-> 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:

bundle exec sidekiq -C config/sidekiq.yml

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?

This comment has been minimized.

Show comment Hide comment

mperham Feb 14, 2014


Yes, it should be automatically used if found at that location. PRs welcome.


mperham commented Feb 14, 2014

Yes, it should be automatically used if found at that location. PRs welcome.

@mperham mperham closed this in 315db46 Feb 15, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment