Skip to content

Decoupling Task Scheduling and Execution Across Two Applications #568

Answered by kagkarlsson
KBA2024 asked this question in Q&A
Discussion options

You must be logged in to vote

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 🙏

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by KBA2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants