title: Sidekiq jobs are getting Enqueued but it's not getting processed. All Jobs are stuck in Enqueued
body: <p>I am trying to send email using <code>sidekiq</code> but it's not working. Here is how i setup <code>sidekiq</code> with <code>ActiveJob</code></p>
  <p>Gemfile</p>
  <pre><code>gem 'sidekiq'
  </code></pre>
  <p>then i run <code>bundle install</code>.</p>
  <p>Application.rb</p>
  <pre><code>config.active_job.queue_adapter = :sidekiq
  config.active_job.queue_name_prefix = Rails.env
  </code></pre>
  <p>UserMailer.rb</p>
  <pre><code>class UserMailer &lt; ApplicationMailer
    def activation_needed_email(user)
      @user = user
      @url  = activate_user_url(@user.activation_token)
      mail(to: user.email, subject: 'Welcome to My website')
    end
  end
  </code></pre>
  <p>UsersController</p>
  <pre><code>def create
      ...
      if @user.save
        UserMailer.activation_needed_email(@user).deliver_later # this is were i am sending email.
      end
      ...
  end
  </code></pre>
  <p>Rails Server Log</p>
  <pre><code>[ActiveJob] Enqueued ActionMailer::MailDeliveryJob (Job ID: e61df8eb-c6c1-417a-af59-d55fdc13ec98) to Sidekiq(mailers) with arguments: &quot;UserMailer&quot;, &quot;activation_needed_email&quot;, &quot;deliver_now&quot;, {:args=&gt;[#&lt;GlobalID:0x00007fabff6a3c60 @uri=#&lt;URI::GID gid://jobs-in-nepal/User/83c17355-db86-4ca1-b674-a97fde512592&gt;&gt;]}
  </code></pre>
  <p>According to above log file ActiveJob has Enqueued the job, but it's using <code>deliver_now</code> rather than <code>deliver_later</code>.</p>
  <p>I am not receiving any email in my mailbox. When i visit <code>localhost:3000/sidekiq</code> then I can see that job is enqueued but job is not processed. How can i process the stuck jobs from enqueued?</p>
  <p><a href="https://i.stack.imgur.com/a7Tkz.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/a7Tkz.png" alt="enter image description here" /></a></p>
  <p><strong>UPDATE:</strong></p>
  <p>I fixed the problem by deleting following line from <code>application.rb</code></p>
  <pre><code>config.active_job.queue_name_prefix = Rails.env
  </code></pre>
  <p>looks like sidekiq was getting confused with queue name.</p>