Changelog #25
Package and Server updates
CTO, Trigger.dev
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
:
_14await io.runTask(_14 "use-callback-url",_14 async (task) => {_14 // task.callbackUrl is the URL to call when the task is done_14 // The output of this task will be the body POSTed to this URL_14 },_14 {_14 name: "Use the callbackUrl to notify the caller when the task is done",_14 callback: {_14 enabled: true,_14 timeoutInSeconds: 300, // If task.callbackUrl is not called within 300 seconds, the task will fail_14 },_14 }_14);
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
getAll
types #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:
_10npx @trigger.dev/cli@latest update