What problem does it solve?
Efficiently create, orchestrate, and manage deterministic Trigger.dev tasks in TypeScript backends using the v4 SDK, reducing boilerplate and increasing reliability.
Core Features & Use Cases
- Basic Task: Define a Task with id, retry policy, and a run function to execute business logic.
- Schema Task: Validate and type-check payloads with a schema before running.
- Scheduled Task: Schedule recurring jobs and observe payload data like timestamp and next runs.
- Triggering Tasks: Trigger tasks from backend code, handle results, and coordinate batch operations.
- Waits: Introduce precise delays and waits for external signals or timeouts.
- Key Points: Distinguish between result and output, enforce type safety, and follow best practices for v4.
Quick Start
Write a simple task using the v4 SDK and wire it into your Node backend to start processing events.