New Team member notification email failure
Created by: Athou
The email notification when adding a team member to a project sometimes fails. The job is marked as failed in Resque. This is with 2.9.0pre 022d63b with a MySQL database. Retrying the failed job with the Resque admin console seems to send the email correctly. Any ideas ?
Arguments
"project_access_granted_email"
60
Exception
ActiveRecord::RecordNotFound
Error
Couldn't find UsersProject with id=60
/home/gitlab/gitlab/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.8/lib/active_record/relation/finder_methods.rb:341:in `find_one'
/home/gitlab/gitlab/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.8/lib/active_record/relation/finder_methods.rb:312:in `find_with_ids'
/home/gitlab/gitlab/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.8/lib/active_record/relation/finder_methods.rb:107:in `find'
/home/gitlab/gitlab/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.8/lib/active_record/querying.rb:5:in `find'
/home/gitlab/gitlab/app/mailers/notify.rb:80:in `project_access_granted_email'
/home/gitlab/gitlab/vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.8/lib/abstract_controller/base.rb:167:in `process_action'
/home/gitlab/gitlab/vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.8/lib/abstract_controller/base.rb:121:in `process'
/home/gitlab/gitlab/vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.8/lib/abstract_controller/rendering.rb:45:in `process'
/home/gitlab/gitlab/vendor/bundle/ruby/1.9.1/gems/actionmailer-3.2.8/lib/action_mailer/base.rb:457:in `process'
/home/gitlab/gitlab/vendor/bundle/ruby/1.9.1/gems/actionmailer-3.2.8/lib/action_mailer/base.rb:452:in `initialize'
/home/gitlab/gitlab/vendor/bundle/ruby/1.9.1/gems/resque_mailer-2.0.3/lib/resque_mailer.rb:36:in `new'
/home/gitlab/gitlab/vendor/bundle/ruby/1.9.1/gems/resque_mailer-2.0.3/lib/resque_mailer.rb:36:in `perform'