0

I have a method that uses @Scheduler annotation with cron timing. Here is the problem the timing for the scheduler is taken from Data Base during the time of initialization, I want to change the time of scheduler, So Kindly help me how to make reschedule the @Scheduler timing

I am bit confused with those annotations and it's working, I am expecting any help that actually make the scheduler time to change dynamically when the user try to change the timing.

The Main reason I am doing this because, every time we change value in db we need to restart the whole application, that's a bad one so If i can get value from UI and change the scheduler value dynamically without restarting will be very useful

  • No, but thanks for your effort I have the method like @schedule(cron ={}), the cron get the value as string from data base using repository during the application start time, the main goal of me is to avoid restarting the application every time when we change value of cron in db – ron_the_don Nov 26 '22 at 19:32

0 Answers0