“undefined method” error when running delayed_jobs in multiple queues with ./script/delayed_job -n

StackOverflow https://stackoverflow.com/questions/9995128

  •  28-05-2021
  •  | 
  •  

Pregunta

Having a problem with running delayed jobs in multiple queues. I had the same problem at the beginning when I ran all in one queue with

rake jobs:work

But solved it by running

bundle exec rake jobs:work.

Now for running different queues, I'm using: ./script/delayed_job -n 2 start

and back to start with the error. The error is:

"Syck::DomainType#{method_name} failed with NoMethodError: undefined method `{method_name}' for #

I have tried to resolve it by adding the code to application.rb as suggested here:

require 'yaml'
YAML::ENGINE.yamler = 'syck'
# [...]
require File.expand_path('../boot', __FILE__)

But it didn't help. I'm using: Rails 3.0.9 Ruby 1.9.2 p290

Thanks :) Moozly.

¿Fue útil?

Solución

well, try

bundle exec ./script/delayed_job -n 2 start

;)

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top