The Trigger.dev v3 developer preview is now open. For more information and to get early access, check out our developer preview launch post.
Trigger.dev is an open source platform and SDK which allows you to create long-running background jobs in your codebase. Write normal async code, deploy, and never hit a timeout.
- JavaScript and TypeScript SDK
- Write reliable code by default
- No infrastructure to manage
- Works with your existing tech stack
Reliably run tasks and don’t worry about function timeouts, we handle those for you.
- Auto-resume after a function timeout
- Auto-resume after a server outage
- Add delays of up to a year
Create tasks where they belong: in your codebase. Version control, localhost, test, review, and deploy like you're already used to.
import { task } from "@trigger.dev/sdk/v3";
//1. You need to export each task
export const helloWorld = task({
//2. Use a unique id for each task
id: "hello-world",
//3. The run function is the main function of the task
run: async (payload: { message: string }) => {
//4. You can write code that runs for a long time here, there are no timeouts
console.log(payload.message);
},
});
Use our SDK to write tasks in your codebase. There's nothing extra to deploy and no CI to configure, your tasks just connect to our cloud. Or you can always self-host.
We support Development
, Staging
, and Production
environments, allowing you to test your tasks before deploying them to production.
View every task in every run so you can tell exactly what happened. We provide a full trace view of every task run so you can see what happened at every step.
Visit our docs here for a full guide on how to get started with Trigger.dev.
If you prefer to self-host, you can follow our self-hosting guide.
To setup and develop locally or contribute to the open source project, follow our development guide.