Is there delayed_job as a gem for jruby?

I am trying to convert a rails application to jruby on rails. Currently jruby script/delayed_job run gives:

/usr/lib/jruby/lib/ruby/gems/1.8/gems/delayed_job-2.0.3/lib/delayed/command.rb:50:in `each_object': ObjectSpace is disabled; each_object will only work with Class, pass -X+O to enable (RuntimeError)
    from /usr/lib/jruby/lib/ruby/gems/1.8/gems/delayed_job-2.0.3/lib/delayed/command.rb:50:in `daemonize'
    from script/delayed_job:5

Is there a gem like delayed_job for jruby for example?

+5
source share
3 answers

For recording when deploying to the Servlet container, you can use https://github.com/kares/jruby-rack-worker to run Delayed::Jobas part of your JRuby::Rackapplication in a separate thread (daemon) ...

+2
source

, delayed_job ObjectSpace.
Jruby ,
-x + O.
, BackgrounDRB.
- , Workling/Starling.

+1

. Resque , , , . , Redis...

, , . , .

+1

All Articles