Using DbScheduler Without Continuous Polling #672
Replies: 3 comments
-
I was also wondering about something similar but using a dynamic poll based on the known schedule. |
Beta Was this translation helpful? Give feedback.
-
It is currently not possible, but I have entertained the idea of some sort of look-ahead mechanism for better precision. That will in itself be a form of polling though, but might get away with lower polling-frequency using such a strategy. Another thing is that there is an optimization currently, that if a scheduler schedules an execution to |
Beta Was this translation helpful? Give feedback.
-
Hi, |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I have a question regarding the possibility of using DbScheduler without continuous polling in a Spring Boot project.
My use case is as follows:
I only need to schedule one-time tasks sporadically, typically with a delay of around 30 seconds.
I would like the polling interval (e.g., 1 second) to be active only when there are tasks waiting for execution.
However, when there are no tasks pending, I would like to disable or reduce polling to avoid unnecessary database queries.
Is this behavior possible with the current configuration options? If so, could you provide some guidance on how to achieve it?
Thanks in advance for your time and help!
Beta Was this translation helpful? Give feedback.
All reactions