larztask
Durable job queue, no broker.
A background job queue with retries, backoff, dead-lettering, delays and priorities — a durable file store using atomic renames for safe multi-worker processing, with no broker to run.
larzscript pkg install task
What you get
- Retries + backoff + dead-letter
- Delays & priorities
- Atomic multi-worker claim
- No broker
Try it
import "task" as task
let q = task.new()
task.enqueue(q, {"send": "email"}, {"priority": 5})
task.enqueue(q, {"send": "sms"}, {"priority": 1})
let job = task.claim(q, "worker-1")
print(job["payload"], job["priority"])
print(task.complete(q, job["id"]))
print(task.pending_count(q))Output
{send: email} 5
true
1Why it's in the Larz Stack
larztask is a real Larzscript package (larzscript pkg install task) - money-native, zero dependencies, the same language as the rest of the estate, not a separate Python runtime. It composes with the rest of the Larz Stack and the Larz framework.