docs: add machine option in triggering docs (#2487)

This commit is contained in:
Eric Allam
2025-09-11 14:28:26 +01:00
committed by GitHub
parent 1227e5463e
commit 5db583b6cd
+10
View File
@@ -961,6 +961,16 @@ If you don't specify a region it will use the default for your project. Go to th
The region is where your runs are executed, it does not change where the run payload, output, tags, logs, or are any other data is stored.
### `machine`
You can override the default machine preset when you trigger a run:
```ts
await yourTask.trigger(payload, { machine: "large-1x" });
```
If you don't specify a machine it will use the machine preset for your task (or the default for your project). For more information read [the machines guide](/machines).
## Large Payloads
We recommend keeping your task payloads as small as possible. We currently have a hard limit on task payloads above 10MB.