Unable to configure custom scheduler for @Scheduled annotation #34058
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
type: regression
A bug that is also a regression
Milestone
Since Spring
6.2.0
functionality to specify custom scheduler for@Scheduled
annotation is not working anymore.Minimal reproducible example:
I believe this happened in this commit dc2c8d60. Now
Runnable
is wrapped intoOutcomeTrackingRunnable
. As resultTaskSchedulerRouter
fails to determine qualifier:since
OutcomeTrackingRunnable
is not implementingSchedulingAwareRunnable
.@bclozel, do you think it makes sense for
OutcomeTrackingRunnable
to implementSchedulingAwareRunnable
interface instead ofRunnable
? Or to have two flavours ofOutcomeTrackingRunnable
? AndTask
will wrap underlying runnable depends on underlying task?Smth like:
The text was updated successfully, but these errors were encountered: