-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
docs: add dedicated billing limits and alerts page #4132
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
kathiekiwi
wants to merge
1
commit into
main
Choose a base branch
from
docs/billing-limits
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,65 @@ | ||
| --- | ||
| title: "Billing limits and alerts" | ||
| sidebarTitle: "Billing limits & alerts" | ||
| description: "Set a monthly compute spend cap for your organization and get email alerts before you reach it." | ||
| --- | ||
|
|
||
| Billing limits let you cap your organization's monthly compute spend so a runaway task or unexpected traffic spike can't blow your budget. Billing alerts notify you by email as you approach thresholds you choose. | ||
|
|
||
| <Note>Billing limits and alerts are available to all [Trigger.dev Cloud](https://trigger.dev) organizations. They don't apply to self-hosted instances.</Note> | ||
|
|
||
| You can find the settings in the dashboard: open the **Organization** menu in the top left, then **Settings** → **Billing limits**. | ||
|
|
||
|  | ||
|
|
||
| ## Setting a billing limit | ||
|
|
||
| Choose one of three options: | ||
|
|
||
| - **Plan limit**: Use your plan's maximum as the spending cap. | ||
| - **Custom limit**: Set your own monthly spend threshold. | ||
| - **No limit**: No cap is enforced. This is the default. | ||
|
|
||
| A billing limit applies to your whole organization and covers billable environments: `production`, `staging`, and `preview`. Your `dev` environment is not affected. | ||
|
|
||
| Optionally, enable **Cancel in-progress runs when this limit is reached** to immediately cancel executing runs when the limit is hit, instead of letting them finish naturally. | ||
|
|
||
| ## Billing alerts | ||
|
|
||
| Billing alerts are email notifications sent when your monthly spend crosses a threshold. You can add multiple thresholds: | ||
|
|
||
| - **With a billing limit set**: thresholds are percentages of your limit (e.g. 50%, 80%). | ||
| - **Without a billing limit**: thresholds are dollar amounts. | ||
|
|
||
| Alerts only notify you — they never pause environments or reject runs. Use them on their own for visibility, or alongside a limit to get advance warning before enforcement kicks in. | ||
|
|
||
| ## What happens when you reach your limit | ||
|
|
||
| When your organization's spend reaches the billing limit, billable environments enter a **grace period**: | ||
|
|
||
| 1. Queues pause across `production`, `staging`, and `preview`. In-progress runs finish naturally (unless you enabled **Cancel in-progress runs**). | ||
| 2. New runs can still be triggered and are queued, but they won't start executing. Queued runs incur no compute cost until they start. | ||
| 3. You have **24 hours** to review and decide what to do. | ||
|
|
||
| If you don't act before the grace period ends, queued runs are canceled and new triggers are rejected for the rest of the billing cycle. | ||
|
|
||
| <Note> | ||
| Billing limits are **soft limits**, not instantaneous hard caps. Usage is evaluated on a short | ||
| delay, so spend can briefly exceed your limit before enforcement applies. See our | ||
| [terms](https://trigger.dev/terms) for refund policy details. | ||
| </Note> | ||
|
|
||
| ## Resuming after hitting a limit | ||
|
|
||
| To resume execution, increase or remove the billing limit from the **Billing limits** page. You'll be asked what to do with the runs that queued up during the pause: | ||
|
|
||
| - **Resume queued runs**: everything that built up during the pause runs in order. | ||
| - **Cancel queued runs**: the backlog is discarded and only new triggers run going forward. | ||
|
|
||
| Execution resumes automatically once you've resolved the limit. Limits also reset at the start of each billing cycle. | ||
|
|
||
| ## Tracking spend against your limit | ||
|
|
||
| On the **Usage** page (Organization menu → **Usage**), a **Billing limit** marker appears on the usage bar alongside your current spend and plan included usage, so you can see how close you are at a glance. | ||
|
|
||
| For tips on lowering your spend in the first place, see [How to reduce your spend](/how-to-reduce-your-spend). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win
Clarify the queued-run resume flow.
This wording suggests that raising/removing the limit automatically resumes queued runs, but the billing-limits page says users are prompted to choose whether to resume or cancel that backlog. Please make this pointer reflect that choice or link directly to the full flow.
Suggested wording
📝 Committable suggestion