Skills / Engineering / Trigger.dev Background Jobs

Trigger.dev Background Jobs

Run long-running background jobs with Trigger.dev. Covers durable tasks that survive timeouts, retries and idempotency, scheduled and event triggers, concurrency controls, waits and delays, and observability for reliable async workflows in TypeScript.

This skill helps you build durable background jobs with Trigger.dev. It defines tasks that run beyond serverless timeouts, adds retries with idempotency keys, wires scheduled and event-driven triggers, controls concurrency and queues, pauses with waits and delays, orchestrates multi-step flows, and inspects runs with built-in observability — all in plain TypeScript.

trigger.dev background-jobs durable-workflows typescript async

When to use

Use when running background or long-running jobs with Trigger.dev — durable tasks, retries and idempotency, scheduled/event triggers, concurrency control, waits and delays, or run observability.

Examples

Durable pipeline

Survive timeouts

Build a Trigger.dev task that ingests an uploaded CSV, processes rows in batches with retries, and waits for a human approval step before finalizing

Scheduled task

Recurring job

Create a Trigger.dev scheduled task that runs every morning to sync data from an external API with idempotency and concurrency limits
Added to wishlist