Skip to content

docs: document cron schedule windows - #4657

Merged
carderne merged 4 commits into
mainfrom
docs/cron-windows
Aug 18, 2026
Merged

docs: document cron schedule windows#4657
carderne merged 4 commits into
mainfrom
docs/cron-windows

Conversation

@carderne

Copy link
Copy Markdown
Collaborator

Documents schedule windows on the Scheduled tasks page: what a window does, the accepted values (30m / 2h / 50%, zero to disable), how to set it on declarative and imperative schedules, and the nominal-vs-effective time distinction (nextRun / nextRunEffectiveAt).

Follows #4566 and #4572.

TRI-13294

@changeset-bot

changeset-bot Bot commented Aug 18, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 182ee5d

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@coderabbitai

coderabbitai Bot commented Aug 18, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

Walkthrough

Added documentation for schedule windows. It describes deterministic run spreading, duration and percentage formats, zero-window behavior, configuration methods, and nominal versus effective timestamps. It adds window to schedule creation and update schemas, plus window and nextRunEffectiveAt to ScheduleObject. It also adds a dashboard schedule-form Window option.

Merge Risk: 🟡 Moderate · up to fea8e

The PR adds schedule-window documentation and OpenAPI descriptions, but the current text contains bounded contract inaccuracies about default timing, effective timestamps, accepted values, and zero-window behavior, while some examples do not follow repository guidance. These issues can mislead users integrating scheduled tasks and should be fixed or explicitly accepted before merge.

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Description check ⚠️ Warning The description explains the documentation changes and references related issues, but it omits the required checklist, testing, changelog, and screenshots sections. Add the required template sections, complete the checklist, describe testing performed, provide a changelog entry, and indicate whether screenshots are applicable.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and concisely describes the main change: documenting cron schedule windows.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch docs/cron-windows

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@carderne
carderne marked this pull request as ready for review August 18, 2026 11:28

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Devin Review found 3 potential issues.

Open in Devin Review

Comment thread docs/tasks/scheduled.mdx
Comment thread docs/tasks/scheduled.mdx
Comment thread docs/tasks/scheduled.mdx

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (2)
docs/tasks/scheduled.mdx (2)

158-179: 📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win

Make the new code examples copy/paste ready.

Use the required typescript fence tag instead of ts. Add import { schedules } from "@trigger.dev/sdk"; to the examples. If the imperative example remains separate, also make its dailyReport dependency explicit.

As per coding guidelines: Use typescript, bash, and json fence tags; always import from @trigger.dev/sdk; and make examples complete and runnable where possible.

Source: Coding guidelines


170-179: 📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win

Add window to the full SDK example.

The new imperative example documents window, but the later schedules.create() example described as containing “all the options” in Lines 283-302 does not include it. Add a window property there, or change that heading, so the full example does not imply that windows cannot be combined with timezone, externalId, and deduplicationKey.


ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 8b31d954-33be-4e1a-8fdb-dadeacc1f0bd

📥 Commits

Reviewing files that changed from the base of the PR and between 41aefda and 6d91b7e.

📒 Files selected for processing (1)
  • docs/tasks/scheduled.mdx

Included review availability: Your plan includes up to 10 reviews per rolling hour; 8 remain after this review.

📜 Review details
⏰ Context from checks skipped due to timeout. (3)
  • GitHub Check: Analyze (actions)
  • GitHub Check: Analyze (javascript-typescript)
  • GitHub Check: code-quality / code-quality
🧰 Additional context used
📓 Path-based instructions (1)
docs/**/*.mdx

📄 CodeRabbit inference engine (docs/CLAUDE.md)

docs/**/*.mdx: MDX documentation pages must include frontmatter with title (required), description (required), and sidebarTitle (optional) in YAML format
Use Mintlify components for structured content: , , , , , , /, /
Always import from @trigger.dev/sdk in code examples (never from @trigger.dev/sdk/v3)
Code examples must be complete and runnable where possible
Use language tags in code fences: typescript, bash, json

Files:

  • docs/tasks/scheduled.mdx
🧠 Learnings (2)
📚 Learning: 2026-03-10T12:44:14.176Z
Learnt from: nicktrn
Repo: triggerdotdev/trigger.dev PR: 3200
File: docs/config/config-file.mdx:353-368
Timestamp: 2026-03-10T12:44:14.176Z
Learning: In the trigger.dev repo, docs PRs are often companions to implementation PRs. When reviewing docs PRs (MDX files under docs/), check the PR description for any companion/related PR references and verify that the documented features exist in those companion PRs before flagging missing implementations. This ensures docs stay in sync with code changes across related PRs.

Applied to files:

  • docs/tasks/scheduled.mdx
📚 Learning: 2026-04-30T20:30:29.458Z
Learnt from: ericallam
Repo: triggerdotdev/trigger.dev PR: 3226
File: docs/ai-chat/quick-start.mdx:13-13
Timestamp: 2026-04-30T20:30:29.458Z
Learning: In this repo’s documentation MDX files (`docs/**/*.mdx`), use `ts` and `tsx` (not `typescript`) as the code-fence language tags for TypeScript/TSX snippets. Do not flag `ts`/`tsx` code-fence language tags as incorrect in any docs MDX file, since this is the site-wide Mintlify-compatible convention.

Applied to files:

  • docs/tasks/scheduled.mdx
🪛 LanguageTool
docs/tasks/scheduled.mdx

[style] ~145-~145: To elevate your writing, try using more formal phrasing here.
Context: ...he load is smoothed while each schedule keeps firing at a predictable, repeatable moment. T...

(CONTINUE_TO_VB)

🔇 Additional comments (1)
docs/tasks/scheduled.mdx (1)

149-154: LGTM!

Comment thread docs/tasks/scheduled.mdx
Comment thread docs/tasks/scheduled.mdx

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Devin Review found 1 new potential issue.

Open in Devin Review

Comment thread docs/tasks/scheduled.mdx

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2


ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 57ae8af2-a2eb-4eff-8bbe-db02a3ee0207

📥 Commits

Reviewing files that changed from the base of the PR and between 6d91b7e and fea8e91.

📒 Files selected for processing (1)
  • docs/v3-openapi.yaml

Included review availability: Your plan includes up to 10 reviews per rolling hour; 7 remain after this review.

📜 Review details
⏰ Context from checks skipped due to timeout. (2)
  • GitHub Check: code-quality / code-quality
  • GitHub Check: Analyze (javascript-typescript)
🔇 Additional comments (1)
docs/v3-openapi.yaml (1)

5827-5831: LGTM!

Comment thread docs/v3-openapi.yaml Outdated
Comment thread docs/v3-openapi.yaml Outdated
@pkg-pr-new

pkg-pr-new Bot commented Aug 18, 2026

Copy link
Copy Markdown

Open in StackBlitz

@trigger.dev/build

npm i https://pkg.pr.new/@trigger.dev/build@182ee5d

trigger.dev

npm i https://pkg.pr.new/trigger.dev@182ee5d

@trigger.dev/core

npm i https://pkg.pr.new/@trigger.dev/core@182ee5d

@trigger.dev/python

npm i https://pkg.pr.new/@trigger.dev/python@182ee5d

@trigger.dev/react-hooks

npm i https://pkg.pr.new/@trigger.dev/react-hooks@182ee5d

@trigger.dev/redis-worker

npm i https://pkg.pr.new/@trigger.dev/redis-worker@182ee5d

@trigger.dev/rsc

npm i https://pkg.pr.new/@trigger.dev/rsc@182ee5d

@trigger.dev/schema-to-json

npm i https://pkg.pr.new/@trigger.dev/schema-to-json@182ee5d

@trigger.dev/sdk

npm i https://pkg.pr.new/@trigger.dev/sdk@182ee5d

commit: 182ee5d

@carderne
carderne enabled auto-merge (squash) August 18, 2026 12:21
@carderne
carderne merged commit 74db5a3 into main Aug 18, 2026
26 checks passed
@carderne
carderne deleted the docs/cron-windows branch August 18, 2026 12:23
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