title: Uninitialized constant worker class sidekiq rails
body: <p>I have two servers I'm copying code from one server(A) and then trying to run on another(B). </p>
  
  <p>All my workers on A are working fine. When I run the workers from B I'm getting this error:</p>
  
  <pre><code>NameError: uninitialized constant FeedRefresherFetcher
  </code></pre>
  
  <p>Here's the worker code where error is thrown:</p>
  
  <pre><code>class FeedRefresherScheduler
    include Sidekiq::Worker
  
    def perform
      Feed.select(:id, :feed_url).find_in_batches(batch_size: 5000) do |feeds|
        arguments = feeds.map do |feed|
          values = feed.attributes.values
          values
        end
        Sidekiq::Client.push_bulk(
          'args'  =&gt; arguments,
          'class' =&gt; 'FeedRefresherFetcher',
          'queue' =&gt; 'feed_refresher_fetcher',
          'retry' =&gt; false
        )
      end
    end
  
  end
  </code></pre>
  
  <p>Full trace of the error:</p>
  
  <pre><code>2014-09-01T12:41:19Z 14958 TID-qien4 WARN: uninitialized constant FeedRefresherFetcher
  2014-09-01T12:41:19Z 14958 TID-qien4 WARN: /usr/local/rvm/gems/ruby-2.0.0-p481/gems/activesupport-4.0.2/lib/active_support/inflector/methods.rb:226:in `const_get'
  /usr/local/rvm/gems/ruby-2.0.0-p481/gems/activesupport-4.0.2/lib/active_support/inflector/methods.rb:226:in `block in constantize'
  /usr/local/rvm/gems/ruby-2.0.0-p481/gems/activesupport-4.0.2/lib/active_support/inflector/methods.rb:224:in `each'
  /usr/local/rvm/gems/ruby-2.0.0-p481/gems/activesupport-4.0.2/lib/active_support/inflector/methods.rb:224:in `inject'
  /usr/local/rvm/gems/ruby-2.0.0-p481/gems/activesupport-4.0.2/lib/active_support/inflector/methods.rb:224:in `constantize'
  /usr/local/rvm/gems/ruby-2.0.0-p481/gems/activesupport-4.0.2/lib/active_support/core_ext/string/inflections.rb:66:in `constantize'
  /usr/local/rvm/gems/ruby-2.0.0-p481/gems/sidekiq-2.17.1/lib/sidekiq/processor.rb:43:in `block in process'
  /usr/local/rvm/gems/ruby-2.0.0-p481/gems/sidekiq-2.17.1/lib/sidekiq/processor.rb:86:in `do_defer'
  /usr/local/rvm/gems/ruby-2.0.0-p481/gems/sidekiq-2.17.1/lib/sidekiq/processor.rb:37:in `process'
  /usr/local/rvm/gems/ruby-2.0.0-p481/gems/celluloid-0.15.2/lib/celluloid/calls.rb:25:in `public_send'
  /usr/local/rvm/gems/ruby-2.0.0-p481/gems/celluloid-0.15.2/lib/celluloid/calls.rb:25:in `dispatch'
  /usr/local/rvm/gems/ruby-2.0.0-p481/gems/celluloid-0.15.2/lib/celluloid/calls.rb:122:in `dispatch'
  /usr/local/rvm/gems/ruby-2.0.0-p481/gems/celluloid-0.15.2/lib/celluloid/actor.rb:322:in `block in handle_message'
  /usr/local/rvm/gems/ruby-2.0.0-p481/gems/celluloid-0.15.2/lib/celluloid/actor.rb:416:in `block in task'
  /usr/local/rvm/gems/ruby-2.0.0-p481/gems/celluloid-0.15.2/lib/celluloid/tasks.rb:55:in `block in initialize'
  /usr/local/rvm/gems/ruby-2.0.0-p481/gems/celluloid-0.15.2/lib/celluloid/tasks/task_fiber.rb:13:in `block in create'
  </code></pre>
  
  <p>Also please note that there is no worker named FeedRefresherFetcher defined in my workers directory. But again the code is same as server A and on server A its working. </p>
  
  <p>I don't have much idea about sidekiq workers. Any idea what could be wrong?</p>