Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Compatible with DataMapper Backend? #22

Open
neilchaudhuri opened this Issue Jun 16, 2012 · 3 comments

Comments

Projects
None yet
2 participants

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

'
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:in new' 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: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 `'

Owner

lostboy commented Jun 16, 2012

Hi Neil I'll take a look at that for you over the weekend

On 16 Jun 2012, at 08:01, Neil Chaudhurireply@reply.github.com 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: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

'
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:in new' 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: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 `'


Reply to this email directly or view it on GitHub:
#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.

Owner

lostboy commented Aug 19, 2013

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment