Jobify
Robust async task scheduler for Python.
Event-driven timing, typed APIs, persistence, routing, and queue-based backpressure.
Extremely lightweight: uses only ~30MB of RAM in idle compared to ~300MB for Celery.
Documentation • Quick Start • Community Extensions • Telegram
Contents
Why Jobify
Most Python schedulers rely on polling loops. Jobify uses low-level asyncio timers (call_at) to schedule jobs directly.
- No idle polling CPU cost
- Sub-millisecond trigger precision
- Native async-first execution model
If your workload is bursty or downstream services are sensitive, use Queue Middleware to add bounded buffering, backpressure, and priority routing.
Installation
pip install jobify
Quick Start
import asyncio
from jobify import Jobify, Job
app = Jobify()
@app.task
async def hello(name: str) -> None:
print(f"Hello, {name}")
async def main() -> None:
async with app:
job: Job = await hello.push("Alex")
await job.wait()
if __name__ == "__main__":
asyncio.run(main())
Extended example (cron, delay, absolute time)
import asyncio
from datetime import datetime, timedelta
from zoneinfo import ZoneInfo
from jobify import Jobify, Job
UTC = ZoneInfo("UTC")
app = Jobify(tz=UTC)
@app.task(cron="* * * * * * *") # every second
async def my_cron() -> None:
print("cron tick")
@app.task
def my_job(name: str) -> None:
now = datetime.now(tz=UTC)
print(f"Hello, {name}! at {now!r}")
async def main() -> None:
async with app:
await my_job.push("Alex")
run_next_day = datetime.now(tz=UTC) + timedelta(days=1)
job_at: Job = await my_job.schedule("Connor").at(run_next_day)
job_delay: Job = await my_job.schedule("Sara").delay(seconds=20)
job_cron: Job = await my_cron.schedule().cron("* * * * *", job_id="dynamic_cron_id")
await job_at.wait()
await job_delay.wait()
await job_cron.wait()
if __name__ == "__main__":
asyncio.run(main())
Key Features
- Precision scheduling: event-driven timers, no polling loop.
- Flexible triggers: now, delay, timestamp, cron.
- Persistence: built-in SQLite storage for scheduled jobs.
- Routing: organize tasks with
JobRouter. - Context injection: inject state and dependencies into tasks.
- Middleware pipeline: execution and scheduling interceptors.
- Queue middleware: FIFO/LIFO/PriorityQueue with backpressure.
- Exception handlers: hierarchical error handling.
- Run modes:
asyncio, thread pool, process pool. - Community DB adapters.
Feature comparison (Jobify vs Taskiq/APScheduler/Celery)
| Feature name | Jobify | Taskiq | APScheduler (v3) | Celery |
|---|---|---|---|---|
| Event-driven Scheduling | ✅ (Low-level timer) | ❌ (Polling/Loop) | ❌ (Interval) | ❌ (Polling/Loop) |
| Async Native (asyncio) | ✅ | ✅ | ❌ (Sync mostly) | ❌ |
| Context Injection | ✅ | ✅ | ❌ | ❌ |
| FastAPI-style Routing | ✅ | ❌ | ❌ | ❌ |
| Middleware Support | ✅ | ✅ | ❌ (Events only) | ❌ (Signals) |
| Lifespan Support | ✅ | ✅ | ❌ | ❌ |
| Exception Handlers | ✅ (Hierarchical) | ❌ | ❌ | ❌ |
| Job Cancellation | ✅ | ❌ | ✅ | ✅ |
| Cron Scheduling | ✅ (Seconds level) | ✅ (Minutes) | ✅ | ✅ |
| Misfire Policy | ✅ | ❌ | ✅ | ❌ |
| Run Modes (Thread/Process) | ✅ | ✅ | ✅ | ✅ |
| Zero-config Persistence | ✅ (SQLite default) | ❌ (Needs Broker) | ✅ | ❌ (Needs Broker) |
| Broker-backend execution | ❌ (roadmap) | ✅ | ❌ | ✅ |
When to Choose Jobify
Use Jobify when:
- you need precise in-process scheduling without polling overhead
- you want typed, framework-like APIs for task registration and routing
- you need queue-based backpressure and priority controls in a single process
License
This project is licensed under the MIT license.
Metadata
Release files for jobify 0.14.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| jobify-0.14.0.tar.gz | 48.9 kB | Without provenance | Details for jobify-0.14.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| jobify-0.14.0-py3-none-any.whl | Python 3 | none | any | Details for jobify-0.14.0-py3-none-any.whl |
Total release size: 114.1 kB
Release files / jobify-0.14.0.tar.gz
| Download URL | jobify-0.14.0.tar.gz |
|---|---|
| Size | 48.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2f84036c082956afcbac484787740c38cd3a9be7567bbc5b560847c2e955c13b
|
|
BLAKE2b-256 checksum How to use checksums |
ca45edc2895a04094bdf45ba43fa9c447280e396d8fc888361289e32947fe4b2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.13.4 {"installer":{"name":"uv","version":"0.13.4","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Omarchy","version":"4.0.6","id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / jobify-0.14.0-py3-none-any.whl
| Download URL | jobify-0.14.0-py3-none-any.whl |
|---|---|
| Size | 65.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3e086cbc23d6a0e08527ebb2b4e428175f699016b475fd99f7288cbc95085c13
|
|
BLAKE2b-256 checksum How to use checksums |
0dba0dad716691665ed58db1fe50348be1d80f0e8da832fbd505f6e66060d598
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.13.4 {"installer":{"name":"uv","version":"0.13.4","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Omarchy","version":"4.0.6","id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for jobify 0.14.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.