Skip to content

feat(openworkflow, docs): schedules - #892

Merged
jamescmartinez merged 2 commits into
mainfrom
feat/schedules
Oct 12, 2026
Merged

jamescmartinez merged 2 commits into
mainfrom
feat/schedules

Conversation

@jamescmartinez

@jamescmartinez jamescmartinez commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

Closes #246

@pkg-pr-new

pkg-pr-new Bot commented Oct 12, 2026 •

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/openworkflowdev/openworkflow/@openworkflow/cli@892
npm i https://pkg.pr.new/openworkflowdev/openworkflow/@openworkflow/dashboard@892
npm i https://pkg.pr.new/openworkflowdev/openworkflow@892

commit: 22435dc

@codecov

codecov Bot commented Oct 12, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 99.45652% with 1 line in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
...kages/openworkflow/postgres/vitest.global-setup.ts 0.00% 1 Missing ⚠️

📢 Thoughts on this report? Let us know!

@jamescmartinez

Copy link
Copy Markdown
Contributor Author

Codecov Report

❌ Patch coverage is 99.45652% with 1 line in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
...kages/openworkflow/postgres/vitest.global-setup.ts 0.00% 1 Missing ⚠️
📢 Thoughts on this report? Let us know!

lol, test setup, ignoring

@greptile-apps

greptile-apps Bot commented Oct 12, 2026 •

Copy link
Copy Markdown

RetriggerConfidence Score: 5/5

[High impact] The latest changes appear safe to merge; no new blocking issue was found.

Summary

This PR adds recurring workflow schedules, with saved progress, schedule management, and worker polling.

  • Workflow schedules accept cron rules, time zones, and saved input.
  • Both databases store schedules and attribute their workflow runs.
  • Workers save declared schedules and queue due runs in the background.

Diagram

sequenceDiagram
  participant App as Application
  participant Worker
  participant DB as PostgreSQL or SQLite
  App->>DB: Register or replace schedule
  Worker->>DB: Save declared schedules on startup
  loop Poll due schedules
    Worker->>DB: Create runs and advance schedule together
    DB-->>Worker: Number of runs created
  end
  Worker->>DB: Claim queued run
  Worker->>Worker: Execute workflow
Loading

Reviews (2) · Last reviewed commit: "chore: add schedule example" · Reviewed by Greptile

Comment thread packages/openworkflow/core/schedule.ts
Comment thread apps/docs/docs/schedules.mdx
@jamescmartinez
jamescmartinez enabled auto-merge (squash) October 12, 2026 18:15
@jamescmartinez
jamescmartinez merged commit 3074b8a into main Oct 12, 2026
10 checks passed
@jamescmartinez
jamescmartinez deleted the feat/schedules branch October 12, 2026 18:17
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.

Support for recurring workflows

1 participant