Skip to main content

A modern, lightweight and robust task manager with a user-friendly interface and a wide range of features, using the low-level asyncio API and more.

Project description

Jobify logo

Jobify

Robust async task scheduler for Python.

Event-driven timing, typed APIs, persistence, routing, and queue-based backpressure.

Supported Python versions PyPI version Tests Coverage License: MIT

DocumentationQuick StartCommunity ExtensionsTelegram

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

app = Jobify()


@app.task
async def hello(name: str) -> None:
    print(f"Hello, {name}")


async def main() -> None:
    async with app:
        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

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 = await my_job.schedule("Connor").at(run_next_day)
        job_delay = await my_job.schedule("Sara").delay(seconds=20)
        job_cron = 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

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

Consider broker-based systems if:

  • you need distributed worker pools across many hosts today
  • your architecture requires external broker-first task execution

License

This project is licensed under the MIT license.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

jobify-0.11.0.tar.gz (35.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

jobify-0.11.0-py3-none-any.whl (52.5 kB view details)

Uploaded Python 3

File details

Details for the file jobify-0.11.0.tar.gz.

File metadata

  • Download URL: jobify-0.11.0.tar.gz
  • Upload date:
  • Size: 35.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.12 {"installer":{"name":"uv","version":"0.11.12","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for jobify-0.11.0.tar.gz
Algorithm Hash digest
SHA256 20c9994d079661f6949b8f271f312b66c114894b6516f16acf0ee936dbd54d9e
MD5 1a61df0205b6de52b34657d5a5bb75b4
BLAKE2b-256 ff86077d23d7a802c86a5f2f3a08cd590396400cb01b29348a89863e458b6540

See more details on using hashes here.

File details

Details for the file jobify-0.11.0-py3-none-any.whl.

File metadata

  • Download URL: jobify-0.11.0-py3-none-any.whl
  • Upload date:
  • Size: 52.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.12 {"installer":{"name":"uv","version":"0.11.12","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for jobify-0.11.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6b1b329180077fa28bc210db44b07f15bfd929ece1e03f046aa132e0a25971e2
MD5 3ac6efc3ef5df20741e8187097a47f02
BLAKE2b-256 4b3b6836391a6b73bb16aa7d7172517d4d78cc44b5e6a9fdd56f498a57051a87

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page