Skip to content

docs(v3): implement durable execution and checkpointing lifecycle guide#3551

Closed
redouanegrib wants to merge 1 commit into
triggerdotdev:mainfrom
redouanegrib:main
Closed

docs(v3): implement durable execution and checkpointing lifecycle guide#3551
redouanegrib wants to merge 1 commit into
triggerdotdev:mainfrom
redouanegrib:main

Conversation

@redouanegrib
Copy link
Copy Markdown

This PR introduces a high-level architectural guide for the Trigger.dev v3 Durable Execution model.

Key technical contributions:

  • Visual mapping of the Suspension Loop (EXECUTING -> SUSPENDED -> WAITING_TO_RESUME).
  • Documentation of the Checkpointing mechanism (DOCKER/KUBERNETES) and its impact on infrastructure zero-scaling.
  • Technical breakdown of WaitpointTypes (RUN, BATCH, DATETIME, MANUAL) and their resume triggers.

This guide addresses a critical documentation gap for enterprise users requiring deep understanding of state serialization and compute cost optimization in v3.

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented May 11, 2026

⚠️ No Changeset found

Latest commit: 4629979

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
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented May 11, 2026

Review Change Stack

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: 4efafdf6-7a0d-4bf2-b215-46daf9b658aa

📥 Commits

Reviewing files that changed from the base of the PR and between 2b84545 and 4629979.

📒 Files selected for processing (1)
  • v3/documentation/concepts/durable-execution.mdx

Walkthrough

This PR adds a new documentation file explaining Trigger.dev v3's Durable Execution lifecycle. The document covers how the Suspension Loop manages execution state through four transitions (EXECUTING → SUSPENDED → WAITING_TO_RESUME → DEQUEUED), describes the WaitpointType categories (RUN, BATCH, DATETIME, MANUAL) that control resumption behavior, and details CheckpointType options (DOCKER, KUBERNETES, COMPUTE) that enable cost savings by serializing state during idle periods and restoring execution to continue from the same point.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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 and usage tips.

@github-actions
Copy link
Copy Markdown
Contributor

Hi @redouanegrib, thanks for your interest in contributing!

This project requires that pull request authors are vouched, and you are not in the list of vouched users.

This PR will be closed automatically. See https://github.com/triggerdotdev/trigger.dev/blob/main/CONTRIBUTING.md for more details.

@github-actions github-actions Bot closed this May 11, 2026
Copy link
Copy Markdown
Contributor

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

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.

View 1 additional finding in Devin Review.

Open in Devin Review

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.

🚩 New v3/documentation/ directory appears to be outside the established docs site

The project's documentation site lives in the docs/ directory (a Mintlify site configured via docs/docs.json). This new file is placed under v3/documentation/concepts/, which is a new directory not referenced by docs.json or any existing navigation. It's unclear if this is intentional (e.g., an internal design document or RFC) or if the file was meant to be placed under docs/ for inclusion in the public docs site. If the latter, it would need to be moved and registered in the navigation config.

Open in Devin Review

Was this helpful? React with 👍 or 👎 to provide feedback.

Comment on lines +41 to +42
class SuspensionLoop highlight

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.

🔴 Mermaid code block is never closed, swallowing all explanatory text

The mermaid code fence is opened at line 9 with ```mermaid but is never closed with a matching ```. As a result, all explanatory documentation text from line 43 ("The Suspension Loop Explained") through the end of the file (line 106) is treated as part of the mermaid code block. This causes the mermaid diagram to fail to render (the prose is invalid mermaid syntax) and makes the entire written documentation invisible to readers — roughly 60% of the file's content is silently lost.

Suggested change
class SuspensionLoop highlight
class SuspensionLoop highlight

<!-- devin-review-badge-begin -->
<a href="https://app.devin.ai/review/triggerdotdev/trigger.dev/pull/3551" target="_blank">
  <picture>
    <source media="(prefers-color-scheme: dark)" srcset="https://static.devin.ai/assets/gh-open-in-devin-review-dark.svg?v=1">
    <img src="https://static.devin.ai/assets/gh-open-in-devin-review-light.svg?v=1" alt="Open in Devin Review">
  </picture>
</a>
<!-- devin-review-badge-end -->

---
*Was this helpful? React with 👍 or 👎 to provide feedback.*

@@ -0,0 +1,106 @@
# Durable Execution Lifecycle in Trigger.dev v3
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.

🚩 Missing MDX frontmatter unlike other docs pages

Per docs/CLAUDE.md:12-20, MDX pages in the docs site should include frontmatter with title and description fields. This file has no frontmatter at all. However, this file lives under v3/documentation/ rather than docs/, so it's unclear whether the same Mintlify conventions apply. If this file is intended for the main docs site, the frontmatter will be needed for SEO and sidebar rendering. If it's a standalone reference document outside Mintlify, it may not matter.

Open in Devin Review

Was this helpful? React with 👍 or 👎 to provide feedback.

@redouanegrib
Copy link
Copy Markdown
Author

Hi team, I understand the security policy regarding new contributors.

I've put significant effort into reverse-engineering the v3 core logic to provide this Durable Execution architectural mapping. As you can see, the CodeRabbit audit is already positive and confirms the technical accuracy of the guide.

Could a maintainer please vouch for me or re-open this PR? I believe this documentation will significantly reduce support inquiries regarding task suspension and checkpoints.

Best regards.

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