Uncaught @Async invocations should use BeanExceptionHandler #2346
Labels
status: under consideration
The issue is being considered, but has not been accepted yet
type: improvement
A minor improvement to an existing feature
This is a feature / enhancement request.
The docs indicate that
TaskExceptionHandler
can be used to handle uncaught exceptions caused by scheduled tasks, such as methods annotated with@Scheduled
. But because@Async
can use the same executors, it seems reasonable that those method invocations should also defer exception handling to eitherTaskExceptionHandler
or at least another type ofBeanExceptionHandler
. Right nowAsyncInterceptor
catches invocations and simply logs them directly.Thanks for considering!
The text was updated successfully, but these errors were encountered: