jondot / sneakers

A fast background processing framework for Ruby and RabbitMQ
https://github.com/jondot/sneakers
MIT License
2.24k stars 333 forks source link

Handle all exceptions except SignalException and SystemExit #455

Closed aberranthacker closed 2 years ago

aberranthacker commented 3 years ago

Previously Sneakers was able to handle StandardError and ScriptError exceptions and their descendants. But there are more exceptions that could cause problems.

In case of these exceptions, the handler is unable to report job state to the RabbitMQ. RabbitMQ keeps sending new jobs to the Sneakers until prefetch value reached. It makes Sneakers worker hang without processing any new message.

DarkSideF commented 2 years ago

@jondot Hello! Can you please tell me what we should do for merge this PR?