Skip to content

Commit 642f15a

Browse files
committed
WIP batch docs
1 parent 0acd052 commit 642f15a

File tree

2 files changed

+384
-146
lines changed

2 files changed

+384
-146
lines changed

docs/limits.mdx

Lines changed: 48 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@ title: "Limits"
33
description: "There are some hard and soft limits that you might hit."
44
---
55

6-
import RateLimitHitUseBatchTrigger from '/snippets/rate-limit-hit-use-batchtrigger.mdx';
6+
import RateLimitHitUseBatchTrigger from "/snippets/rate-limit-hit-use-batchtrigger.mdx";
77

88
## Concurrency limits
99

10-
| Pricing tier | Limit |
11-
|:---------------- |:-------------------- |
12-
| Free | 5 concurrent runs |
13-
| Hobby | 25 concurrent runs |
14-
| Pro | 100+ concurrent runs |
10+
| Pricing tier | Limit |
11+
| :----------- | :------------------- |
12+
| Free | 5 concurrent runs |
13+
| Hobby | 25 concurrent runs |
14+
| Pro | 100+ concurrent runs |
1515

1616
If you need more than 100 concurrent runs on the Pro tier, you can request more by contacting us via [email](https://trigger.dev/contact) or [Discord](https://trigger.dev/discord).
1717

@@ -20,44 +20,58 @@ If you need more than 100 concurrent runs on the Pro tier, you can request more
2020
Generally speaking each SDK call is an API call.
2121

2222
| Limit | Details |
23-
|:----- |:------------------------- |
23+
| :---- | :------------------------ |
2424
| API | 1,500 requests per minute |
2525

26-
<RateLimitHitUseBatchTrigger/>
26+
<RateLimitHitUseBatchTrigger />
2727

2828
## Queued tasks
2929

3030
The number of queued tasks by environment.
3131

3232
| Limit | Details |
33-
|:------- |:------------------ |
33+
| :------ | :----------------- |
3434
| Dev | At most 500 |
3535
| Staging | At most 10 million |
3636
| Prod | At most 10 million |
3737

3838
## Schedules
3939

40-
| Pricing tier | Limit |
41-
|:---------------- |:-------------------- |
42-
| Free | 5 per project |
43-
| Hobby | 100 per project |
44-
| Pro | 1,000+ per project |
40+
| Pricing tier | Limit |
41+
| :----------- | :----------------- |
42+
| Free | 5 per project |
43+
| Hobby | 100 per project |
44+
| Pro | 1,000+ per project |
4545

4646
When attaching schedules to tasks we strongly recommend you add them [in our dashboard](/tasks/scheduled#attaching-schedules-in-the-dashboard) if they're "static". That way you can control them easily per environment.
4747

4848
If you add them [dynamically using code](/management/schedules/create) make sure you add a `deduplicationKey` so you don't add the same schedule to a task multiple times. If you don't your task will get triggered multiple times, it will cost you more, and you will hit the limit.
4949

5050
If you're creating schedules for your user you will definitely need to request more schedules from us.
5151

52+
## Task payloads and outputs
53+
54+
| Limit | Details |
55+
| :--------------------- | :-------------------------------------------- |
56+
| Single trigger payload | Must not exceed 3MB |
57+
| Batch trigger payload | The total of all payloads must not exceed 1MB |
58+
| Task outputs | Must not exceed 10MB |
59+
60+
Payloads and outputs that exceed 512KB will be offloaded to object storage and a presigned URL will be provided to download the data when calling `runs.retrieve`. You don't need to do anything to handle this in your tasks however, as we will transparently upload/download these during operation.
61+
62+
## Batch size
63+
64+
A single batch can have a maximum of 500 items.
65+
5266
<SoftLimit />
5367

5468
## Log retention
5569

56-
| Pricing tier | Limit |
57-
|:---------------- |:--------- |
58-
| Free | 1 day |
59-
| Hobby | 7 days |
60-
| Pro | 30 days |
70+
| Pricing tier | Limit |
71+
| :----------- | :------ |
72+
| Free | 1 day |
73+
| Hobby | 7 days |
74+
| Pro | 30 days |
6175

6276
## Log size
6377

@@ -66,25 +80,30 @@ We limit the size of logs to prevent oversized data potentially causing issues.
6680
<Expandable title="log limits">
6781

6882
#### Attribute Limits
83+
6984
- Span Attribute Count Limit: 256
7085
- Log Attribute Count Limit: 256
7186
- Span Attribute Value Length Limit: 1028 characters
7287
- Log Attribute Value Length Limit: 1028 characters
7388

7489
#### Event and Link Limits
90+
7591
- Span Event Count Limit: 10
7692
- Link Count Limit: 2
7793
- Attributes per Link Limit: 10
7894
- Attributes per Event Limit: 10
7995

8096
#### I/O Packet Length Limit
97+
8198
128 KB (131,072 bytes)
8299

83100
#### Attribute Clipping Behavior
101+
84102
- Attributes exceeding the value length limit (1028 characters) are discarded.
85103
- If the total number of attributes exceeds 256, additional attributes are not included.
86104

87105
#### Attribute Value Size Calculation
106+
88107
- Strings: Actual length of the string
89108
- Numbers: 8 bytes
90109
- Booleans: 4 bytes
@@ -93,25 +112,15 @@ We limit the size of logs to prevent oversized data potentially causing issues.
93112

94113
</Expandable>
95114

96-
## Task payloads and outputs
97-
98-
| Limit | Details |
99-
|:--- |:--- |
100-
| Single trigger payload | Must not exceed 10MB |
101-
| Batch trigger payload | The total of all payloads must not exceed 10MB |
102-
| Task outputs | Must not exceed 10MB |
103-
104-
Payloads and outputs that exceed 512KB will be offloaded to object storage and a presigned URL will be provided to download the data when calling `runs.retrieve`. You don't need to do anything to handle this in your tasks however, as we will transparently upload/download these during operation.
105-
106115
## Alerts
107116

108117
An alert destination is a single email address, Slack channel, or webhook URL that you want to send alerts to. If you're on the Pro and need more than 100 alert destinations, you can request more by contacting us via [email](https://trigger.dev/contact) or [Discord](https://trigger.dev/discord).
109118

110-
| Pricing tier | Limit |
111-
|:---------------- |:----------------------- |
112-
| Free | 1 alert destination |
113-
| Hobby | 3 alert destinations |
114-
| Pro | 100+ alert destinations |
119+
| Pricing tier | Limit |
120+
| :----------- | :---------------------- |
121+
| Free | 1 alert destination |
122+
| Hobby | 3 alert destinations |
123+
| Pro | 100+ alert destinations |
115124

116125
## Machines
117126

@@ -121,8 +130,8 @@ See the [machine configurations](/machines#machine-configurations) for more deta
121130

122131
## Team members
123132

124-
| Pricing tier | Limit |
125-
|:---------------- |:----------------- |
126-
| Free | 5 team members |
127-
| Hobby | 5 team members |
128-
| Pro | 25+ team members |
133+
| Pricing tier | Limit |
134+
| :----------- | :--------------- |
135+
| Free | 5 team members |
136+
| Hobby | 5 team members |
137+
| Pro | 25+ team members |

0 commit comments

Comments
 (0)