Skip to content

@trigger.dev/[email protected]

Compare
Choose a tag to compare
@github-actions github-actions released this 17 Jan 12:09
· 28 commits to main since this release
0687ce7

Patch Changes

  • Add support for specifying machine preset at trigger time. Works with any trigger function: (#1608)

    // Same as usual, will use the machine preset on childTask, defaults to "small-1x"
    await childTask.trigger({ message: "Hello, world!" });
    
    // This will override the task's machine preset and any defaults. Works with all trigger functions.
    await childTask.trigger({ message: "Hello, world!" }, { machine: "small-2x" });
    await childTask.triggerAndWait({ message: "Hello, world!" }, { machine: "small-2x" });
    
    await childTask.batchTrigger([
      { payload: { message: "Hello, world!" }, options: { machine: "micro" } },
      { payload: { message: "Hello, world!" }, options: { machine: "large-1x" } },
    ]);
    await childTask.batchTriggerAndWait([
      { payload: { message: "Hello, world!" }, options: { machine: "micro" } },
      { payload: { message: "Hello, world!" }, options: { machine: "large-1x" } },
    ]);
    
    await tasks.trigger<typeof childTask>(
      "child",
      { message: "Hello, world!" },
      { machine: "small-2x" }
    );
    await tasks.batchTrigger<typeof childTask>("child", [
      { payload: { message: "Hello, world!" }, options: { machine: "micro" } },
      { payload: { message: "Hello, world!" }, options: { machine: "large-1x" } },
    ]);
  • Add otel exporter support (#1602)

  • Detect parallel waits and show a useful error message (6d17443e1)

  • Require maxDuration config and have a better error for bad CI tokens (#1620)