|
1 | 1 | # internal-platform |
2 | 2 |
|
| 3 | +## 3.3.11 |
| 4 | + |
| 5 | +### Patch Changes |
| 6 | + |
| 7 | +- Add support for specifying machine preset at trigger time. Works with any trigger function: ([#1608](https://github.com/triggerdotdev/trigger.dev/pull/1608)) |
| 8 | + |
| 9 | + ```ts |
| 10 | + // Same as usual, will use the machine preset on childTask, defaults to "small-1x" |
| 11 | + await childTask.trigger({ message: "Hello, world!" }); |
| 12 | + |
| 13 | + // This will override the task's machine preset and any defaults. Works with all trigger functions. |
| 14 | + await childTask.trigger({ message: "Hello, world!" }, { machine: "small-2x" }); |
| 15 | + await childTask.triggerAndWait({ message: "Hello, world!" }, { machine: "small-2x" }); |
| 16 | + |
| 17 | + await childTask.batchTrigger([ |
| 18 | + { payload: { message: "Hello, world!" }, options: { machine: "micro" } }, |
| 19 | + { payload: { message: "Hello, world!" }, options: { machine: "large-1x" } }, |
| 20 | + ]); |
| 21 | + await childTask.batchTriggerAndWait([ |
| 22 | + { payload: { message: "Hello, world!" }, options: { machine: "micro" } }, |
| 23 | + { payload: { message: "Hello, world!" }, options: { machine: "large-1x" } }, |
| 24 | + ]); |
| 25 | + |
| 26 | + await tasks.trigger<typeof childTask>( |
| 27 | + "child", |
| 28 | + { message: "Hello, world!" }, |
| 29 | + { machine: "small-2x" } |
| 30 | + ); |
| 31 | + await tasks.batchTrigger<typeof childTask>("child", [ |
| 32 | + { payload: { message: "Hello, world!" }, options: { machine: "micro" } }, |
| 33 | + { payload: { message: "Hello, world!" }, options: { machine: "large-1x" } }, |
| 34 | + ]); |
| 35 | + ``` |
| 36 | + |
| 37 | +- Add otel exporter support ([#1602](https://github.com/triggerdotdev/trigger.dev/pull/1602)) |
| 38 | +- Detect parallel waits and show a useful error message ([`6d17443e1`](https://github.com/triggerdotdev/trigger.dev/commit/6d17443e16362bc81261d30d04d4fa1c5a4de977)) |
| 39 | +- Require maxDuration config and have a better error for bad CI tokens ([#1620](https://github.com/triggerdotdev/trigger.dev/pull/1620)) |
| 40 | + |
3 | 41 | ## 3.3.10 |
4 | 42 |
|
5 | 43 | ### Patch Changes |
|
0 commit comments