SimpleAsyncTaskScheduler: consistently apply default error handling #32298
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
type: enhancement
A general enhancement
Milestone
Affects: 6.1.4 (virtual threads enabled)
SimpleAsyncTaskScheduler
does apply default error handling (and logging) for:schedule(Runnable task, Trigger trigger)
scheduleWithFixedDelay(Runnable task, Instant startTime, Duration delay)
scheduleWithFixedDelay(Runnable task, Duration delay)
but does not apply it for:
schedule(Runnable task, Instant startTime)
scheduleAtFixedRate(Runnable task, Instant startTime, Duration period)
scheduleAtFixedRate(Runnable task, Duration period)
i think default error handling (especially logging) should be applied in all cases.
ill reference a repro sample app that uses
schedule(Runnable task, Instant startTime)
.running the app, you can see corresponding stderr output but no other handling/logging taking place:
thanks & regards.
The text was updated successfully, but these errors were encountered: