I'm trying to get delayed jobs to work on a Sinatra app. I have been looking at https://github.com/bmizerany/sinatra-dj but I am currently using delayed-job in gem form and not in a vendor directory.
Issuing 'heroku rake jobs:work' works as expected. However, when using the heroku worker I can't really get it to work. 2011-09-07T18:19:22+00:00 heroku[worker.1]: Starting process with command `rake jobs:work` 2011-09-07T18:19:22+00:00 heroku[worker.1]: State changed from starting to up 2011-09-07T18:19:23+00:00 app[worker.1]: D, [2011-09-07T11:19:23.240558 #1] DEBUG -- : NoMethodError: undefined method `values' for #<PGresult:0x7fbafe16e480>: SHOW client_min_messages 2011-09-07T18:19:23+00:00 app[worker.1]: D, [2011-09-07T11:19:23.242964 #1] DEBUG -- : PGError: ERROR: invalid value for parameter "client_min_messages": "" 2011-09-07T18:19:23+00:00 app[worker.1]: : SET client_min_messages TO '' 2011-09-07T18:19:23+00:00 app[worker.1]: D, [2011-09-07T11:19:23.305451 #1] DEBUG -- : NoMethodError: undefined method `values' for #<PGresult:0x7fbafe16b2d0>: SHOW client_min_messages 2011-09-07T18:19:23+00:00 app[worker.1]: D, [2011-09-07T11:19:23.307045 #1] DEBUG -- : PGError: ERROR: invalid value for parameter "client_min_messages": "" 2011-09-07T18:19:23+00:00 app[worker.1]: : SET client_min_messages TO '' 2011-09-07T18:19:23+00:00 app[worker.1]: rake aborted! 2011-09-07T18:19:23+00:00 app[worker.1]: PGError: ERROR: invalid value for parameter "client_min_messages": "" 2011-09-07T18:19:23+00:00 app[worker.1]: : SET client_min_messages TO '' 2011-09-07T18:19:23+00:00 app[worker.1]: 2011-09-07T18:19:23+00:00 app[worker.1]: Tasks: TOP => jobs:work 2011-09-07T18:19:23+00:00 app[worker.1]: (See full trace by running task with --trace) 2011-09-07T18:19:23+00:00 heroku[worker.1]: Process exited 2011-09-07T18:19:23+00:00 heroku[worker.1]: State changed from up to crashed 2011-09-07T18:19:23+00:00 heroku[worker.1]: State changed from crashed to created 2011-09-07T18:19:24+00:00 heroku[worker.1]: State changed from created to starting 2011-09-07T18:19:25+00:00 heroku[worker.1]: Starting process with command `rake jobs:work` 2011-09-07T18:19:26+00:00 heroku[worker.1]: State changed from starting to up 2011-09-07T18:19:26+00:00 app[worker.1]: D, [2011-09-07T11:19:26.622604 #1] DEBUG -- : PGError: ERROR: invalid value for parameter "client_min_messages": "" 2011-09-07T18:19:26+00:00 app[worker.1]: : SET client_min_messages TO '' 2011-09-07T18:19:26+00:00 app[worker.1]: D, [2011-09-07T11:19:26.749509 #1] DEBUG -- : NoMethodError: undefined method `values' for #<PGresult:0x7f452098e268>: SHOW client_min_messages 2011-09-07T18:19:26+00:00 app[worker.1]: D, [2011-09-07T11:19:26.752097 #1] DEBUG -- : PGError: ERROR: invalid value for parameter "client_min_messages": "" 2011-09-07T18:19:26+00:00 app[worker.1]: : SET client_min_messages TO '' 2011-09-07T18:19:26+00:00 app[worker.1]: rake aborted! 2011-09-07T18:19:26+00:00 app[worker.1]: PGError: ERROR: invalid value for parameter "client_min_messages": "" 2011-09-07T18:19:26+00:00 app[worker.1]: : SET client_min_messages TO '' 2011-09-07T18:19:26+00:00 app[worker.1]: 2011-09-07T18:19:26+00:00 app[worker.1]: Tasks: TOP => jobs:work 2011-09-07T18:19:26+00:00 app[worker.1]: (See full trace by running task with --trace) 2011-09-07T18:19:26+00:00 heroku[worker.1]: Process exited 2011-09-07T18:19:27+00:00 heroku[worker.1]: State changed from up to crashed I have gem "activerecord" gem "delayed_job" gem "sinatra-activerecord" gem "pg" in my Gemfile and require 'sinatra/activerecord/rake' require 'active_record' require 'delayed_job' in the Rakefile. I most likely have some strange setting in my code. If someone spots any obvious mistake please tell. Thanks in advance, David -- David Hall, M. Sc., da...@dpg.se -- You received this message because you are subscribed to the Google Groups "Heroku" group. To post to this group, send email to heroku@googlegroups.com. To unsubscribe from this group, send email to heroku+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/heroku?hl=en.