collectiveidea / delayed_job

Database based asynchronous priority queue system -- Extracted from Shopify
http://groups.google.com/group/delayed_job
MIT License
4.82k stars 954 forks source link

rake jobs:work fails #27

Closed bensie closed 14 years ago

bensie commented 14 years ago

A recent commit causes rake jobs:work to fail:

jk2:dp jkmiller$ rake jobs:work (in /Users/james/Sites/rails/dp) *\ Starting job worker host:jk2.local pid:7060 rake aborted! wrong number of arguments (1 for 0)

collectiveidea commented 14 years ago

I'm not able to duplicate this. Can you run the command again with --trace and post the stacktrace here?

Reopen if you're still having issues.

bensie commented 14 years ago

jk2:dp jkmiller$ rake jobs:work --trace (in /Users/jkmiller/Sites/rails/dp) * Invoke jobs:work (first_time) * Invoke merb_env (first_time) * Execute merb_env * Invoke environment (first_time) * Execute environment * Execute jobs:work *\ Starting job worker host:jk2.local pid:8337 rake aborted! wrong number of arguments (1 for 0) /Users/jkmiller/Sites/rails/dp/vendor/plugins/delayed_job/lib/delayed/worker.rb:70:in clear_locks!' /Users/jkmiller/Sites/rails/dp/vendor/plugins/delayed_job/lib/delayed/worker.rb:70:instart' /Users/jkmiller/Sites/rails/dp/vendor/plugins/delayed_job/lib/delayed/tasks.rb:13 /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in call' /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:inexecute' /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in each' /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:inexecute' /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:597:in invoke_with_call_chain' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/monitor.rb:242:insynchronize' /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:590:in invoke_with_call_chain' /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:583:ininvoke' /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:2051:in invoke_task' /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:intop_level' /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in each' /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:intop_level' /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in standard_exception_handling' /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:2023:intop_level' /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:2001:in run' /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:instandard_exception_handling' /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:1998:in run' /Library/Ruby/Gems/1.8/gems/rake-0.8.7/bin/rake:31 /usr/bin/rake:19:inload' /usr/bin/rake:19

bensie commented 14 years ago

Sorry that was ugly: http://gist.github.com/267555

philsmy commented 14 years ago

I get the same (except line 83). How can anyone use this branch?