Larkspur v2.4.1
Larkspur is a lightweight, embeddable job queue for Go and Python services. It persists jobs in SQLite or PostgreSQL, retries failures with exponential backoff, and exposes a small HTTP API for monitoring.
Getting Started
Install the worker, enqueue your first job and watch it run in under five minutes.
Configuration
Every option in larkspur.toml, with defaults and environment overrides.
HTTP API
Endpoints for queues, jobs, workers and health checks.
FAQ
Answers to common questions about delivery guarantees, scaling and upgrades.
Why Larkspur?
- Single binary. No broker to operate. The scheduler and workers run inside your process or as a sidecar.
- At-least-once delivery. Jobs are leased with a visibility timeout and re-queued if a worker crashes.
- Observable. Prometheus metrics, structured logs and a read-only dashboard are built in.
- Portable storage. Start with SQLite on a laptop, move to PostgreSQL in production without code changes.
Architecture at a glance
┌────────────┐ enqueue ┌──────────────┐ lease ┌──────────┐
│ your app │ ───────────▶ │ job store │ ◀───────── │ workers │
└────────────┘ │ sqlite / pg │ ─────────▶ │ (N procs)│
└──────────────┘ result └──────────┘
Producers write jobs to the store in a single transaction. Workers poll with SELECT … FOR UPDATE SKIP LOCKED (PostgreSQL) or an advisory lease table (SQLite), execute the handler and record the outcome.
Looking for the 1.x documentation? Version 1 reached end of life on 2026-03-31. See the changelog for migration notes.