How can implement one-time task with data in Springboot Application? #377
Replies: 5 comments 2 replies
-
@kagkarlsson Kindly help on this. |
Beta Was this translation helpful? Give feedback.
-
Not clear why you have a problem with circular-dependency. That is usually when one wants to use a |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
I think maybe either split the RatingService or try to instantiate a standalone client |
Beta Was this translation helpful? Give feedback.
-
I realize this might be a significant change, but I strongly believe schedulerClient should be available for autowiring within task success or failure execution methods, @kagkarlsson. Currently, the workaround ctx.getSchedulerClient() works for completion handlers, but it’s not accessible in failure handlers. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I refer to given example to implement one-time task https://github.com/kagkarlsson/db-scheduler#spring-boot-usage,but still occur some errors.
Prerequisites
I am using SpringBoot application, and imported dependency
I refer to this link for implementationI https://github.com/kagkarlsson/db-scheduler#spring-boot-usage ,and I want to implement a one-time task with data
I want start one-time task in this method:
Current Behavior
Error shows :There is circular references between myService and com.github.kagkarlsson.scheduler.boot.autoconfigure.DbSchedulerAutoConfiguration, that is why and How can I fix it?Can you provide example for my demand? Thanks!
Beta Was this translation helpful? Give feedback.
All reactions