You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| Batch trigger payload |Each item can be up to 3MB (SDK 4.3.1+). Prior: 1MB total combined|
82
+
| Task outputs | Must not exceed 10MB |
83
83
84
84
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.
85
85
86
86
## Batch size
87
87
88
-
A single batch can have a maximum of 500 items.
88
+
A single batch can have a maximum of 1,000 items with SDK 4.3.1+. Prior versions are limited to 500 items.
89
89
90
90
<SoftLimit />
91
91
92
+
## Batch trigger rate limits
93
+
94
+
Batch triggering uses a token bucket algorithm to rate limit the number of runs you can trigger per environment. Each run in a batch consumes one token.
**How it works**: You can burst up to your bucket size, then tokens refill at the specified rate. For example, a Free user can trigger 1,200 runs immediately, then must wait for tokens to refill (100 runs become available every 10 seconds).
103
+
104
+
## Batch processing concurrency
105
+
106
+
The number of batches that can be processed concurrently per environment.
107
+
108
+
| Pricing tier | Limit |
109
+
| :----------- | :-------------------- |
110
+
| Free | 1 concurrent batch |
111
+
| Hobby | 10 concurrent batches |
112
+
| Pro | 10 concurrent batches |
113
+
114
+
This limits how many batches can have their items actively being processed into runs at the same time.
The most common cause of hitting the API rate limit is if you’re calling `trigger()` on a task in a loop, instead of doing this use `batchTrigger()` which will trigger multiple tasks in a single API call. You can have up to 500 tasks in a single batch trigger call.
1
+
The most common cause of hitting the API rate limit is if you're calling `trigger()` on a task in a loop, instead of doing this use `batchTrigger()` which will trigger multiple tasks in a single API call. You can have up to 1,000 tasks in a single batch trigger call with SDK 4.3.1+ (500 in prior versions).
0 commit comments