Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP


Add active_support to Hello World so schedule runs #9

frommww opened this Issue · 1 comment

2 participants


A slight change to the gem caused schedule to error if active_support/core_ext is not included. In the HelloWorker example (and other examples where schedule is included), add in:

require 'active_support/core_ext'

Hi, I have a problem with scheduling worker, worker is simple - puts "hello world", when I push it to queue everything works like a charm, but when I try to push it to schedule it spits same error

/home/grg/.rvm/gems/ruby-1.9.3-p0/gems/rest-0.1.0/lib/rest/wrappers/rest_client_wrapper.rb:63:in rescue in post': 400 Bad Request (Rest::Wrappers::RestClientExceptionWrapper)
from /home/grg/.rvm/gems/ruby-1.9.3-p0/gems/rest-0.1.0/lib/rest/wrappers/rest_client_wrapper.rb:56:in
from /home/grg/.rvm/gems/ruby-1.9.3-p0/gems/rest-0.1.0/lib/rest/client.rb:70:in post'
from /home/grg/.rvm/gems/ruby-1.9.3-p0/gems/iron_worker-2.3.8/lib/iron_worker/api.rb:169:in
from /home/grg/.rvm/gems/ruby-1.9.3-p0/gems/iron_worker-2.3.8/lib/iron_worker/service.rb:529:in schedule'
from /home/grg/.rvm/gems/ruby-1.9.3-p0/gems/iron_worker-2.3.8/lib/iron_worker/base.rb:279:in
from runner.rb:11:in `


you may want to include active_support/core_ext in the runner code.

require 'active_support/core_ext'

Thanks! scheduling is working now )


Had this same problem, fixed by adding, as said above:

  require 'active_support/core_ext'

I'm not using any core_ext functionality though--should be fixed so it doesn't confuse future users.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.