Open source background jobs with no timeouts

  • JavaScript and TypeScript SDK

  • Write reliable code by default

  • No infrastructure to manage

  • Works with your existing tech stack

Get started now
// Generate an image using OpenAI Dall-E 3
export const generateContent = task({
id: "generate-content",
retry: {
maxAttempts: 3,
},
run: async ({ theme, description }: Payload) => {
const textResult = await openai.chat.completions.create({
model: "gpt-4o",
messages: generateTextPrompt(theme, description),
});
if (!textResult.choices[0]) {
throw new Error("No content, retrying…");
}
const imageResult = await openai.images.generate({
model: "dall-e-3",
prompt: generateImagePrompt(theme, description),
});
if (!imageResult.data[0]) {
throw new Error("No image, retrying…");
}
return {
text: textResult.choices[0],
image: imageResult.data[0].url,
};
},
});

Reliably call AI APIs with no timeouts, automatic retrying, and tracing. Use existing Node.js SDKs and code from your repo.

Trusted by developers at companies all over the world

How it works

Deploy and scale to any size

No timeouts

Write simple, reliable code and never hit a timeout.

Pay for what you use

Only pay when your code is actually executing.

No servers to manage

We deploy your tasks and handle scaling for you.

Find and fix bugs fast

Alerts for errors

Get notified via email, Slack or webhooks when your tasks or deployments fail.

hero

Advanced filtering

Find runs fast using advanced filtering options, then apply bulk actions to multiple tasks at once.

hero

Versioning

Each deploy is an atomic version ensuring started tasks are not affected by code changes.

hero

Reliable by default

import { task } from "@trigger.dev/sdk/v3";
export const simpleTask = task({
id: "simple-task",
retry: {
maxAttempts: 3,
minTimeoutInMs: 1000,
maxTimeoutInMs: 5000,
factor: 2,
randomize: true,
},
run: async (payload, { ctx }) => {
logger.log(`Attempt ${ctx.attempt.number}`);
try {
throw new Error("This is an error.");
} catch (error) {
// The error was caught, so no retry
}
throw new Error("This will cause a retry.");
},
});

Works with your existing tech stack…

Vercel logo
AWS logo
Remix logo
Nuxt logo
SvelteKit logo
Fastify logo
RedwoodJS logo
Cloudflare logo
ExpressJS logo
Astro logo
Google Cloud logo
Azure logo
Netlify logo
NextJS logo
Heart 1Heart 2Heart 3Heart 4Heart 5

We love open source. Trigger.dev is Apache 2.0 licensed so you can view the source code, contribute and self-host.

Loved by developers

Trigger.dev is redefining background jobs for modern developers.

Paul Copplestone

Supabase

Supabase logo

I ****ing love Trigger.dev - really has been the missing piece in the puzzle for me going full serverless.

Pontus Abrahamsson

Midday

Midday logo

Trigger.dev helps us deliver messages over WhatsApp, run thousands of jobs with custom LLM workflows, and execute ETL processes to sync our data across multiple databases without breaking a sweat!

Patryk Maron

DRPCRD

DRPCRD logo

The first time I used Trigger.dev, I had an a-ha moment, I no longer needed to set up everything with ECS or Lambda. What also stands out is the exceptional support, unlike any I've seen in the web community.

Martin Ruzicka

P.S. Bridal

P.S. Bridal logo

We’ve been looking for a product like Trigger.dev for a long time - automation that's simple and dev-focused.

Han Wang

Mintlify

Mintlify logo

Trigger.dev is a breath of fresh air in a world of 20 second lambda timeouts. Trigger has world-class DX, support, and handles my long-running jobs with ease.

Ian Janicki

PropFeeds

PropFeeds logo

I’m in love with Trigger.dev – it’s so much better than the old bull.js + heroku + redis setup that I used to use. You’ve knocked it out of the park with this tool!

Kushal Byatnal

Extend

Extend logo

We're using Trigger for our billing, background jobs and deployment pipeline without worrying about operations or infrastructure. It just works.

Andreas Thomas

Unkey

Unkey logo

Trigger is a central part of our architecture. It’s allowed us to build a resilient system to orchestrates data across multiple systems. We love its observability, replayability, and how easily it slots into our existing codebase. It allows us to refine over time how to set the boundaries between async tasks and synchronous business logic.

Agree Ahmed

NUMI

NUMI logo

Trigger.dev has become my go-to tool for new projects. I no longer need an additional server and can forget about horizontal scaling!

Nevo David

Novu

Novu logo

For AI powered products, Trigger.dev is my clear go-to tool for building robust serverless pipelines stitching together various LLM calls.

Evan Sandler

Blee

Blee logo

Trigger is packaging end-to-end cron, queues and webhooks platform in a slick interface. Integration was quick and we love the support ❤️

Aseem Gupta

SuperKalam

SuperKalam logo

Using Trigger.dev for our Slack jobs saved us loads of time! It was much easier to set up than a no-code tool.

Vlad Matsiiako

Infisical

Infisical logo

We decided to use Trigger.dev over Inngest or setting up our own dedicated solution. We had also looked into UI-based solutions like Zapier and n8n, but they become complex, really slow, expensive and time-consuming to manage for large automations. Trigger.dev made the most overall sense for us when taking dev-speed, cost, scalability and being future-proof into account.

Sohrab Fadai

Heartspace AI

Heartspace AI logo

Trigger.dev is a great way to automate email campaigns with Resend.

Zeno Rocha

Resend

Resend logo

Trigger’s managed infra and intuitive SDK allowed us to migrate our entire events engine in a day (with incredible support from the team).

Michael Parker

Turnout Labs

Turnout Labs logo

Trigger.dev helps us process bounties & tips on Algora without having to duct-tape queues & crons. With standardized timeouts, retries & logging we get full resilience & observability!

Zaf Cesur

Algora

Algora logo

I really enjoyed using Trigger.dev to create jobs through code. I found the API integrations and scheduling features super useful.

Adam Shiervani

BuildJet

BuildJet logo

We love Trigger.dev and it’s had a big impact in dev iteration velocity already.

André Neves

ZBD

ZBD logo

We're backed by the world's best investors, founders and operators

Y Combinator
Supabase
PagerDuty
Dropbox
Raycast
Instabug
Atlassian
Amazon Web Services

Ready to start building?

Build and deploy your first task in 3 mins with no timeouts and no infrastructure to manage.

Get started for free

Simple pricing

Only pay for what you use and scale with your needs.

Explore pricing

Self-host

Trigger.dev is open source and self-hostable.

Self-hosting docs
,