Skip to content

QueueConsumer error handling #30

@kbalsam

Description

@kbalsam

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions