Skip to content

Scheduling refactory#1154

Merged
fjtirado merged 1 commit intoserverlessworkflow:mainfrom
fjtirado:scheduling_refactor
Feb 12, 2026
Merged

Scheduling refactory#1154
fjtirado merged 1 commit intoserverlessworkflow:mainfrom
fjtirado:scheduling_refactor

Conversation

@fjtirado
Copy link
Collaborator

@fjtirado fjtirado commented Feb 11, 2026

These changes will make easier for implementors to reuse the event scheduling code

The overall idea is that almost most implementors will have to provide a ScheduledExecutorService and override every and cron methods, so a hierarchy of three classes has been defined accodingly

EventWorfklowScheduler is the top hierarchy and deal with the event part (which relies on Event comsuner), I do not expect this logic to be ever overriden, but who knows ;)
Then ExecutotServiceWorkflowScheduler depends on a provided ScheduledExecutorService, normally implementors that needs a different cron logic than the default one will extend this one and potentially override the every method to provide scheduling persistence (I do not expect after to be override because that one is a single timer that do not require complex handling, but it is also an option)
Finally, DefaultWorkflowScheduler provides the cron logic.

@fjtirado fjtirado marked this pull request as draft February 11, 2026 14:08
@fjtirado fjtirado force-pushed the scheduling_refactor branch 4 times, most recently from f25d9f4 to a0f6b1a Compare February 12, 2026 12:31
@fjtirado fjtirado force-pushed the scheduling_refactor branch from a0f6b1a to a1ef2d3 Compare February 12, 2026 12:57
@fjtirado fjtirado marked this pull request as ready for review February 12, 2026 13:00
These changes will make easier for implementor to reuse the event
scheduling code

Signed-off-by: fjtirado <ftirados@redhat.com>
@fjtirado fjtirado force-pushed the scheduling_refactor branch from a1ef2d3 to bb3e07c Compare February 12, 2026 13:07
@fjtirado fjtirado merged commit 3aa1867 into serverlessworkflow:main Feb 12, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants