Skip to content

Releases: triggerdotdev/trigger.dev

@trigger.dev/[email protected]

17 Jan 12:08
0687ce7
Compare
Choose a tag to compare

What's Changed

  • Handle large log messages more efficiently by @ericallam in #1604
  • Additional dev queue consumer logging by @ericallam in #1606
  • Add reason to MarQS acknowledgeMessage to track why it's called by @ericallam in #1607
  • Add custom telemetry exporter support by @ericallam in #1602
  • Prevent v2 batches from being resumed before all items have been created by @ericallam in #1614
  • Add support for specifying machine preset at trigger time by @nicktrn in #1608
  • Improve worker deployment queries by @matt-aitken in #1616
  • Add note about prisma-json-types-generator in docs by @goleary in #1617
  • Throw an error for concurrent waits (with nice docs link) by @matt-aitken in #1618
  • Shared queue consumer telemetry improvements and perf changes by @ericallam in #1619

New Contributors

Full Changelog: v.docker.3.3.10...v.docker.3.3.11

[email protected]

17 Jan 12:09
0687ce7
Compare
Choose a tag to compare

Patch Changes

@trigger.dev/[email protected]

17 Jan 12:09
0687ce7
Compare
Choose a tag to compare

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" } },
    ]);
  • Updated dependencies:

@trigger.dev/[email protected]

17 Jan 12:09
0687ce7
Compare
Choose a tag to compare

Patch Changes

@trigger.dev/[email protected]

17 Jan 12:09
0687ce7
Compare
Choose a tag to compare

Patch Changes

@trigger.dev/[email protected]

17 Jan 12:09
0687ce7
Compare
Choose a tag to compare

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)

@trigger.dev/[email protected]

17 Jan 12:09
0687ce7
Compare
Choose a tag to compare

Patch Changes

@trigger.dev/[email protected]

10 Jan 19:53
46a37fd
Compare
Choose a tag to compare

What's Changed

  • Fix: Prevent failed resumes for very large batches by @nicktrn in #1598

Full Changelog: v.docker.3.3.9...v.docker.3.3.10

[email protected]

10 Jan 19:55
46a37fd
Compare
Choose a tag to compare

Patch Changes

@trigger.dev/[email protected]

10 Jan 19:55
46a37fd
Compare
Choose a tag to compare

Patch Changes