I have a requirement to run custom queries at scheduled time. Ex: User defines a custom query to run on postgres database at a particular time of the day. I need to implement a scheduler which picks up the custom queries and scheduled time which are stored in database and execute dynamically.
I can schedule the jobs using Cron scheduler using spring boot which defines the time and date as annotation. But I need to run multiple schedules my picking up date/time from db and run the custom query.