Skip to content

Commit

Permalink
Merge 703d28c into ce88693
Browse files Browse the repository at this point in the history
  • Loading branch information
elitau committed May 27, 2015
2 parents ce88693 + 703d28c commit 0157b54
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/delayed/worker.rb
Expand Up @@ -228,7 +228,7 @@ def run(job)
rescue DeserializationError => error
job.error = error
failed(job)
rescue => error
rescue Exception => error # rubocop:disable RescueException
self.class.lifecycle.run_callbacks(:error, self, job) { handle_failed_job(job, error) }
return false # work failed
end
Expand Down
2 changes: 1 addition & 1 deletion spec/sample_jobs.rb
Expand Up @@ -23,7 +23,7 @@ class ErrorJob
cattr_accessor :runs
@runs = 0
def perform
raise 'did not work'
raise Exception, 'did not work'
end
end

Expand Down

0 comments on commit 0157b54

Please sign in to comment.