Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Compatible with DataMapper Backend? #22

Open
neilchaudhuri opened this Issue · 3 comments

2 participants

Neil Chaudhuri lostboy
Neil Chaudhuri

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:in
block (2 levels) in '
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:in
execute_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:in
each'
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:in
block 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:in
run'
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:in
each'
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:in
initialize!'
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
'
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:in
block 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:in
initialize'
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:in
load'
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:in
start'
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:in
run!'
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:in
load'
2012-06-16T05:56:02+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/bin/thin:19:in `'

lostboy
Owner
Neil Chaudhuri

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.

lostboy
Owner

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
Something went wrong with that request. Please try again.