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 (TypeScript) or the equivalent service in Java, Go, and .NET.
- TypeScript
- Java
- Go
- .NET
npm install @ductape/sdk@0.1.8
<dependency>
<groupId>app.ductape</groupId>
<artifactId>sdk</artifactId>
<version>0.1.8</version>
</dependency>
go get github.com/ductape/ductape/sdk/go@v0.1.8
dotnet add package Ductape.Sdk --version 0.1.8