Skip to content

QueueConsumer error handling #30

Open
kbalsam opened this issue Mar 2, 2022 · 0 comments
Open

QueueConsumer error handling #30

kbalsam opened this issue Mar 2, 2022 · 0 comments

Comments

@kbalsam
Copy link

kbalsam commented Mar 2, 2022

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

1 participant