0
votes

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.

1
You probably running wrong version of rake. Paste your script contentVitaly Kushner

1 Answers

2
votes

well, try

bundle exec ./script/delayed_job -n 2 start

;)