Compatible with DataMapper Backend?
I just tried workless in my Rails 3.1.3 app on Heroku Cedar with Delayed Job 2.1.4 and the configuration described. It looks like DataMapper as the backend ORM isn't compatible as suggested by this error on deployment:
2012-06-16T05:56:02+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/dm-core-1.2.0/lib/dm-core/model/relationship.rb:372:in method_missing': undefined methodscaler=' for Delayed::Backend::DataMapper::Job:Class (NoMethodError)
2012-06-16T05:56:02+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/dm-core-1.2.0/lib/dm-core/model/property.rb:249:in method_missing' 2012-06-16T05:56:02+00:00 app[web.1]: from /app/config/environments/production.rb:65:inblock (2 levels) in <top (required)>'
2012-06-16T05:56:02+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.1.4/lib/active_support/lazy_load_hooks.rb:34:in call' 2012-06-16T05:56:02+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.1.4/lib/active_support/lazy_load_hooks.rb:34:inexecute_hook'
2012-06-16T05:56:02+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.1.4/lib/active_support/lazy_load_hooks.rb:43:in block in run_load_hooks' 2012-06-16T05:56:02+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.1.4/lib/active_support/lazy_load_hooks.rb:42:ineach'
2012-06-16T05:56:02+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.1.4/lib/active_support/lazy_load_hooks.rb:42:in run_load_hooks' 2012-06-16T05:56:02+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.4/lib/rails/application/finisher.rb:56:inblock in module:Finisher'
2012-06-16T05:56:02+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.4/lib/rails/initializable.rb:30:in instance_exec' 2012-06-16T05:56:02+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.4/lib/rails/initializable.rb:30:inrun'
2012-06-16T05:56:02+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.4/lib/rails/initializable.rb:55:in block in run_initializers' 2012-06-16T05:56:02+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.4/lib/rails/initializable.rb:54:ineach'
2012-06-16T05:56:02+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.4/lib/rails/initializable.rb:54:in run_initializers' 2012-06-16T05:56:02+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.4/lib/rails/application.rb:96:ininitialize!'
2012-06-16T05:56:02+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.4/lib/rails/railtie/configurable.rb:30:in method_missing' 2012-06-16T05:56:02+00:00 app[web.1]: from /app/config/environment.rb:5:in<top (required)>'
2012-06-16T05:56:02+00:00 app[web.1]: from config.ru:3:in require' 2012-06-16T05:56:02+00:00 app[web.1]: from config.ru:3:inblock in instance_eval' 2012-06-16T05:56:02+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.3.6/lib/rack/builder.rb:51:ininitialize'
2012-06-16T05:56:02+00:00 app[web.1]: from config.ru:1:in new' 2012-06-16T05:56:02+00:00 app[web.1]: from config.ru:1:ineval' 2012-06-16T05:56:02+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/thin-1.3.1/lib/rack/adapter/loader.rb:36:inload'
2012-06-16T05:56:02+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/thin-1.3.1/lib/thin/controllers/controller.rb:181:in load_rackup_config' 2012-06-16T05:56:02+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/thin-1.3.1/lib/thin/controllers/controller.rb:71:instart'
2012-06-16T05:56:02+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/thin-1.3.1/lib/thin/runner.rb:185:in run_command' 2012-06-16T05:56:02+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/thin-1.3.1/lib/thin/runner.rb:151:inrun!'
2012-06-16T05:56:02+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/thin-1.3.1/bin/thin:6:in <top (required)>' 2012-06-16T05:56:02+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/bin/thin:19:inload'
2012-06-16T05:56:02+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/bin/thin:19:in `
Hi Neil I'll take a look at that for you over the weekend
On 16 Jun 2012, at 08:01, Neil [email protected] wrote:
I just tried workless in my Rails 3.1.3 app on Heroku Cedar with Delayed Job 2.1.4 and the configuration described. It looks like DataMapper as the backend ORM isn't compatible as suggested by this error on deployment:
2012-06-16T05:56:02+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/dm-core-1.2.0/lib/dm-core/model/relationship.rb:372:in
method_missing': undefined methodscaler=' for Delayed::Backend::DataMapper::Job:Class (NoMethodError) 2012-06-16T05:56:02+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/dm-core-1.2.0/lib/dm-core/model/property.rb:249:inmethod_missing' 2012-06-16T05:56:02+00:00 app[web.1]: from /app/config/environments/production.rb:65:inblock (2 levels) in <top (required)>' 2012-06-16T05:56:02+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.1.4/lib/active_support/lazy_load_hooks.rb:34:incall' 2012-06-16T05:56:02+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.1.4/lib/active_support/lazy_load_hooks.rb:34:inexecute_hook' 2012-06-16T05:56:02+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.1.4/lib/active_support/lazy_load_hooks.rb:43:inblock in run_load_hooks' 2012-06-16T05:56:02+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.1.4/lib/active_support/lazy_load_hooks.rb:42:ineach' 2012-06-16T05:56:02+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.1.4/lib/active_support/lazy_load_hooks.rb:42:inrun_load_hooks' 2012-06-16T05:56:02+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.4/lib/rails/application/finisher.rb:56:inblock in module:Finisher' 2012-06-16T05:56:02+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.4/lib/rails/initializable.rb:30:ininstance_exec' 2012-06-16T05:56:02+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.4/lib/rails/initializable.rb:30:inrun' 2012-06-16T05:56:02+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.4/lib/rails/initializable.rb:55:inblock in run_initializers' 2012-06-16T05:56:02+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.4/lib/rails/initializable.rb:54:ineach' 2012-06-16T05:56:02+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.4/lib/rails/initializable.rb:54:inrun_initializers' 2012-06-16T05:56:02+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.4/lib/rails/application.rb:96:ininitialize!' 2012-06-16T05:56:02+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.4/lib/rails/railtie/configurable.rb:30:inmethod_missing' 2012-06-16T05:56:02+00:00 app[web.1]: from /app/config/environment.rb:5:in<top (required)>' 2012-06-16T05:56:02+00:00 app[web.1]: from config.ru:3:inrequire' 2012-06-16T05:56:02+00:00 app[web.1]: from config.ru:3:inblock in' 2012-06-16T05:56:02+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.3.6/lib/rack/builder.rb:51:in instance_eval' 2012-06-16T05:56:02+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.3.6/lib/rack/builder.rb:51:ininitialize' 2012-06-16T05:56:02+00:00 app[web.1]: from config.ru:1:innew' 2012-06-16T05:56:02+00:00 app[web.1]: from config.ru:1:in' 2012-06-16T05:56:02+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/thin-1.3.1/lib/rack/adapter/loader.rb:36:in eval' 2012-06-16T05:56:02+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/thin-1.3.1/lib/rack/adapter/loader.rb:36:inload' 2012-06-16T05:56:02+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/thin-1.3.1/lib/thin/controllers/controller.rb:181:inload_rackup_config' 2012-06-16T05:56:02+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/thin-1.3.1/lib/thin/controllers/controller.rb:71:instart' 2012-06-16T05:56:02+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/thin-1.3.1/lib/thin/runner.rb:185:inrun_command' 2012-06-16T05:56:02+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/thin-1.3.1/lib/thin/runner.rb:151:inrun!' 2012-06-16T05:56:02+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/thin-1.3.1/bin/thin:6:in<top (required)>' 2012-06-16T05:56:02+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/bin/thin:19:inload' 2012-06-16T05:56:02+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/bin/thin:19:in `'
Reply to this email directly or view it on GitHub: https://github.com/lostboy/workless/issues/22
Sounds good. Look forward to your findings since my approaches using the Heroku API fail when I try to kill a worker after a job. But...I am not using ActiveRecord.
Thanks.
Well that was a long weekend. I'm sorry about that Neil, did you ever get to the bottom of it or have another go with the latest gem?