The current default behavior of the quebert worker loop is to exit the quebert process when an exception is raised:
https://github.com/polleverywhere/quebert/blob/master/lib/quebert/worker.rb#L33
Change the default to log the exception and bury the job for later inspection. Also make the object passed into the error proc a custom struct/class for better error encapsulation.
Since this breaks the 3.0 error handler API this should belong on Quebert 4.0.
The current default behavior of the quebert worker loop is to exit the
quebertprocess when an exception is raised:https://github.com/polleverywhere/quebert/blob/master/lib/quebert/worker.rb#L33
Change the default to log the exception and bury the job for later inspection. Also make the object passed into the error proc a custom struct/class for better error encapsulation.
Quebert.logger.errorand bury the job.Quebert::Worker::Errorobject that's passed into the exception handler proc via https://github.com/polleverywhere/quebert/blob/master/lib/quebert/worker.rb#L26.#to_smethod returns all of the info needed for thelogger.errorcall (e.g.Quebert.logger.error(worker_error)Since this breaks the 3.0 error handler API this should belong on Quebert 4.0.