我正在尝试将Rails应用程序转换为Rails上的jruby。目前,jruby script/delayed_job run给出:

/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

是否有jruby这样的gem?

最佳答案

作为记录,在部署到Servlet容器时,可以在单独的 native (守护程序)线程中使用https://github.com/kares/jruby-rack-worker作为Delayed::Job应用程序的一部分运行JRuby::Rack ...

关于jruby - 有像jruby的gem这样的delayd_job吗?,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/3295460/

10-14 01:43