Highlights
We've added a new integration for Replicate, which lets you run machine learning models with a few lines of code. Powered by a new feature of the platform we call "Task Callbacks", which allows tasks to be "completed" via a webhook or failed via a timeout. You can use these using io.runTask:
await io.runTask( "use-callback-url", async (task) => { // task.callbackUrl is the URL to call when the task is done // The output of this task will be the body POSTed to this URL }, { name: "Use the callbackUrl to notify the caller when the task is done", callback: { enabled: true, timeoutInSeconds: 300, // If task.callbackUrl is not called within 300 seconds, the task will fail }, });
Improvements
We've done a lot of performance work this release, especially for job runs with a large amount of tasks and logs. Long story short we now do a much better job with using cached task outputs when resuming runs. For a deep dive check out this pull request
Bug Fixes
- Fixed an issue with the Linear
getAlltypes #81e886a1 - Updated the adapter packages (Remix, Next, Astro, and Express) to return response headers.
Credits
Thanks to @nicktrn for the Linear fix!
How to update
The Trigger.dev Cloud is now running 2.1.10. If you are self-hosting you can upgrade by pinning to the v2.1.10 tag.
To upgrade your @trigger.dev/* packages, you can issue the following command:
npx @trigger.dev/cli@latest update

