Jobs Overview
Jobs let you schedule background work: one-off tasks, recurring cron-style runs, and processor-backed operations (notifications, storage, database, graph, features).
Concepts
| Term | Description |
|---|---|
| Job | A unit of scheduled work with payload, status, and optional repeat/cron |
| Monitor | SDK worker loop that claims due jobs and routes them to the processor |
| Dispatch | Enqueue work without blocking the caller (actions, features, resilience, etc.) |
When to use jobs
- Run features on a schedule or with delay
- Retry failed operations with backoff
- Process notifications, storage, or database operations asynchronously
- Run healthchecks and recurring maintenance
SDK
Initialize the SDK once, then use ductape.jobs from TypeScript or inject the corresponding service through the NestJS integration.
- TypeScript
- NestJS
npm install @ductape/sdk@0.1.8
npm install @ductape/nestjs@0.1.0 @ductape/sdk@0.1.8