Skip to content

Commit

Permalink
Log an error message when a deserialization error occurs
Browse files Browse the repository at this point in the history
  • Loading branch information
johnnaegle committed Mar 15, 2016
1 parent 2014009 commit 0602a6b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/delayed/worker.rb
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,8 @@ def run(job)
job_say job, format('COMPLETED after %.4f', runtime)
return true # did work
rescue DeserializationError => error
job_say job, "FAILED permanently with #{error.class.name}: #{error.message}", 'error'

job.error = error
failed(job)
rescue Exception => error # rubocop:disable RescueException
Expand Down

0 comments on commit 0602a6b

Please sign in to comment.