001
library
v0.20
tinyjobs
No broker, no result backend, no daemon. The queue is a file.
Background jobs and cron for Python, on SQLite with nothing to install, or on Postgres or Redis with the same code. It is the worker that Django 6’s django.tasks ships without, and in FastAPI it runs inside the server process.
pip install tinyjobs
app = TinyJobs("sqlite:///jobs.db")
@app.task(max_attempts=5)
def send_welcome_email(user_id: int) -> None: ...
send_welcome_email.enqueue(42)The proof · 10 hours under crash test
897,300 jobs.29 kills.0 lost.
evidence
- 2026-11-17Python Bytes #505, opening item, “a SQLite job queue goes free-threaded” →
- 2026-11-24DEV, Top 7 Featured Posts of the Week, picked by the editors →
- 2026-11-18The article “How a job queue fits in one SQLite file” →
- benchmark10 hours, 1 SQLite file, 3 workers, 897,300 jobs, 29 SIGKILLs, 0 lost →
- auditFree-threaded Python, 4 races the GIL had been hiding, fixed →
context
30 GitHub stars and three months old, as of 25 November 2026. MIT licensed.
limits
It runs on one machine, because the SQLite file has to sit on a local disk. Only one process writes at a time, so a few thousand jobs a second is the ceiling. Delivery is at-least-once, so a task must be safe to run twice. Past those limits you change the URL and move to Postgres or Redis.