Allow on a global or per-consumer level the ability to define an error as a "fatal error" and reraise it even if config.reraise_errors is set to false.
We can provide a block in the configuration and a method to override in the consumer which would be passed the exception object and the payloads.
For example, the global block could check to see if the database is down (via connection.active?) and reraise the error if so. This would prevent consumers from consuming messages nonstop when a critical resource is missing.
Allow on a global or per-consumer level the ability to define an error as a "fatal error" and reraise it even if
config.reraise_errors
is set to false.We can provide a block in the configuration and a method to override in the consumer which would be passed the exception object and the payloads.
For example, the global block could check to see if the database is down (via
connection.active?
) and reraise the error if so. This would prevent consumers from consuming messages nonstop when a critical resource is missing.