Skip to content

Scheduled events#12

Merged
johanflint merged 4 commits into
mainfrom
feature/scheduled-events
Oct 10, 2025
Merged

Scheduled events#12
johanflint merged 4 commits into
mainfrom
feature/scheduled-events

Conversation

@johanflint

Copy link
Copy Markdown
Owner
  • Support the schedule field containing a cron expression in a flow
  • Schedule flows at startup time
  • Extract flow execution from the store listener

Ensures the test environment creates the required directory before running tests, preventing file creation errors on systems with stricter directory permissions.
Extends the flow engine to support scheduled execution of flows.
This change introduces a 'schedule' field to the Flow struct
and updates the flow loading and creation processes to handle
the new field. A new test case is added to verify schedule
parsing.
Implements a scheduler to trigger flows based on cron expressions defined in the flow configuration.
The scheduler spawns a tokio task for each scheduled flow, which will sleep until the next scheduled execution time and then trigger the flow.
Reactive flows are now separated from scheduled flows, so they are handled by the store listener.
Adds necessary dependencies such as `cron` and `chrono`.
Refactors flow execution to be triggered independently by both
store updates and the scheduler.
@johanflint johanflint merged commit 1f835c0 into main Oct 10, 2025
6 checks passed
@johanflint johanflint deleted the feature/scheduled-events branch October 10, 2025 15:42
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.

1 participant