Note that there are some explanatory texts on larger screens.

plurals
  1. POcannot set sidekiq queue to 'default' in rails
    primarykey
    data
    text
    <p>This is what I have in my NoteWorker that is fired up with a rake task.</p> <p><strong>NoteWorker.rb</strong></p> <pre><code>class NoteWorker include Sidekiq::Worker sidekiq_options queue: "note" sidekiq_options :failures =&gt; true def perform(model_id) #do something end end </code></pre> <p><strong>note.rake</strong></p> <pre><code>namespace :notes do task :send_note =&gt; :environment do NoteWorker.perform_async(model.id) end end </code></pre> <p>Everything works as is. But I am trying to autoscale, which can't seem to autoscale multiple workers so I am trying to change all the queues to "default" as opposed to custom names. But when I delete the <code>sidekiq_options queue: "note"</code> or change it to <code>sidekiq_options queue: "default"</code> it gives me this error:</p> <pre><code>"Scaling worker to 1" rake aborted! Expected(200) &lt;=&gt; Actual(404 Not Found) request =&gt; {:connect_timeout=&gt;60, :headers=&gt;{"Accept"=&gt;"application/json", "Accept-Encoding"=&gt;"gzip", "Authorization"=&gt;"Basic Og==", "User-Agent"=&gt;"heroku-rb/0.2.1", "X-Heroku-API-Version"=&gt;"3", "X-Ruby-Version"=&gt;"1.9.3", "X-Ruby-Platform"=&gt;"x86_64-darwin10.8.0", "Host"=&gt;"api.heroku.com:443", "Content-Length"=&gt;0}, :instrumentor_name=&gt;"excon", :mock=&gt;false, :read_timeout=&gt;60, :retry_limit=&gt;4, :ssl_ca_file=&gt;"/Users/user/.rvm/gems/ruby-1.9.3-p0@notebook/gems/excon-0.13.4/data/cacert.pem", :ssl_verify_peer=&gt;true, :write_timeout=&gt;60, :host=&gt;"api.heroku.com", :path=&gt;"/apps//ps/scale", :port=&gt;"443", :query=&gt;{"type"=&gt;"worker", "qty"=&gt;1}, :scheme=&gt;"https", :expects=&gt;200, :method=&gt;:post} response =&gt; #&lt;Excon::Response:0x00000104700aa8 @body="{\"id\":\"not_found\",\"error\":\"Not found\"}", @headers={"Cache-Control"=&gt;"no-transform", "Content-Type"=&gt;"application/json;charset=utf-8", "Date"=&gt;"Wed, 31 Jul 2013 02:32:25 GMT", "Status"=&gt;"404 Not Found", "Strict-Transport-Security"=&gt;"max-age=31536000", "X-Cascade"=&gt;"pass", "X-Content-Type-Options"=&gt;"nosniff", "X-Runtime"=&gt;"0.00246243", "Content-Length"=&gt;"38", "Connection"=&gt;"keep-alive"}, @status=404&gt; /Users/user/.rvm/gems/ruby-1.9.3-p0@notebook/gems/excon-0.13.4/lib/excon/connection.rb:266:in `request_kernel' /Users/user/.rvm/gems/ruby-1.9.3-p0@notebook/gems/excon-0.13.4/lib/excon/connection.rb:97:in `request' /Users/user/.rvm/gems/ruby-1.9.3-p0@notebook/gems/heroku-api-0.2.1/lib/heroku/api.rb:60:in `request' /Users/user/.rvm/gems/ruby-1.9.3-p0@notebook/gems/heroku-api-0.2.1/lib/heroku/api/processes.rb:43:in `post_ps_scale' /Users/user/.rvm/gems/ruby-1.9.3-p0@notebook/gems/autoscaler-0.3.0/lib/autoscaler/heroku_scaler.rb:38:in `workers=' /Users/user/.rvm/gems/ruby-1.9.3-p0@notebook/gems/autoscaler-0.3.0/lib/autoscaler/sidekiq/client.rb:14:in `call' /Users/user/.rvm/gems/ruby-1.9.3-p0@notebook/gems/sidekiq-2.8.0/lib/sidekiq/middleware/chain.rb:111:in `block in invoke' /Users/user/.rvm/gems/ruby-1.9.3-p0@notebook/gems/sidekiq-2.8.0/lib/sidekiq/middleware/chain.rb:114:in `call' /Users/user/.rvm/gems/ruby-1.9.3-p0@notebook/gems/sidekiq-2.8.0/lib/sidekiq/middleware/chain.rb:114:in `invoke' /Users/user/.rvm/gems/ruby-1.9.3-p0@notebook/gems/sidekiq-2.8.0/lib/sidekiq/client.rb:112:in `process_single' /Users/user/.rvm/gems/ruby-1.9.3-p0@notebook/gems/sidekiq-2.8.0/lib/sidekiq/client.rb:40:in `push' /Users/user/.rvm/gems/ruby-1.9.3-p0@notebook/gems/sidekiq-2.8.0/lib/sidekiq/worker.rb:68:in `client_push' /Users/user/.rvm/gems/ruby-1.9.3-p0@notebook/gems/sidekiq-2.8.0/lib/sidekiq/worker.rb:38:in `perform_async' /Users/user/rails_projects/notebook/lib/tasks/send_note.rake:25:in `block (3 levels) in &lt;top (required)&gt;' /Users/user/.rvm/gems/ruby-1.9.3-p0@notebook/gems/activerecord-3.2.12/lib/active_record/relation/delegation.rb:6:in `each' /Users/user/.rvm/gems/ruby-1.9.3-p0@notebook/gems/activerecord-3.2.12/lib/active_record/relation/delegation.rb:6:in `each' /Users/user/rails_projects/notebook/lib/tasks/send_note.rake:24:in `block (2 levels) in &lt;top (required)&gt;' Tasks: TOP =&gt; send_note:send_note (See full trace by running task with --trace) </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload