Decoupling Task Scheduling and Execution Across Two Applications #568
-
I have a use case where I need to decouple task scheduling and execution between two separate applications: App 1: Responsible only for scheduling tasks (e.g., daily, every 5 minutes, or immediate). |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
It is possible to split scheduling and execution, but not without the executor knowing anything about the schedule or frequency. In db-scheduler, the next execution-time is calculated when the current execution is done, and to calculate that it needs access to the schedule. One variant is what I called dynamic recurring tasks, where the schedule is stored in the Normally, when splitting scheduling and execution, you would start the Scheduler in the executor-application and only instantiate a SchedulerClient in the scheduling-application. Appreciate the donation 🙏 |
Beta Was this translation helpful? Give feedback.
It is possible to split scheduling and execution, but not without the executor knowing anything about the schedule or frequency. In db-scheduler, the next execution-time is calculated when the current execution is done, and to calculate that it needs access to the schedule. One variant is what I called dynamic recurring tasks, where the schedule is stored in the
task_data
rather than statically in code (an example)Normally, when splitting scheduling and execution, you would start the Scheduler in the executor-application and only instantiate a SchedulerClient in the scheduling-application.
Appreciate the donation 🙏