Could the QueueConsumer interface be updated to automatically TaskExecutionResult.fail() on an uncaught exception? The pattern of
try {
// Process
} catch (e: Exception) {
// log exception
// return TaskExecutionResult.fail()
}
isn't compatible with top-level Spring exception handlers and leads to the catch and log pattern.