Python job scheduler libraries

Updated Nov 2026

Python job scheduler libraries run functions at set times or intervals and hand longer work to background workers. A task queue sends each job through a broker such as Redis to separate worker processes. These libraries let web apps and AI agents run recurring work such as reports and data syncs.

Popularity

Celery has the most monthly downloads in this comparison, at 53.6M.

LibraryMonthly downloadsStarsLast releaseLicense
Celery
53.6M
29.2KNov 2026BSD-3-Clause
APScheduler
44.5M
7.7KJun 2026MIT
Huey
15.5M
6.1KNov 2026MIT
RQ
13.1M
10.7KOct 2026BSD-2-Clause
schedule
6.9M
12.3KMay 2024MIT
arq
5.6M
3.0KApr 2026MIT
Taskiq
2.6M
2.4KSep 2026MIT
Dramatiq
2.5M
5.3KSep 2026LGPL-3.0-or-later
Downloads: PyPI, last thirty days. Stars and releases: GitHub. Amber: no release in over a year.

Libraries and code examples

Schedules periodic tasks with beat and executes them on worker nodes.

Downloads / mo
53.6M
Stars
29.2K
Last release
5.7.0
License
BSD-3-Clause

Strengths

  • Separates scheduling from task execution. Let beat enqueue periodic tasks for worker nodes to execute.
  • Supports cron-style periodic schedules. Use crontab schedules for tasks that run at chosen calendar times.

Limitations

  • Each schedule needs one beat. Run one scheduler for each schedule to avoid duplicate task submissions.
  • Periodic tasks can overlap. Use a lock when a periodic task can outlast its interval.

Quickstart

From periodic-tasks.html
$ python -m pip install "celery[redis]==5.7.0"
# tasks.py
from celery import Celery

app = Celery("tasks", broker="redis://localhost:6379/0")

@app.task
def add(x, y):
    return x + y

# producer.py
import tasks

result = tasks.add.delay(1, 2)

Celery examples

From open-source projects on GitHub

Schedules Python jobs with date, interval, and cron triggers inside an application.

Downloads / mo
44.5M
Stars
7.7K
Last release
3.11.3
License
MIT

Strengths

  • Runs inside an existing application. Use a background or asyncio scheduler within the application process.
  • Exports jobs as JSON. Move saved jobs between job stores through an exported JSON document.

Limitations

  • Job stores cannot be shared. Give each scheduler its own job store rather than sharing it across processes.
  • Persistent jobs need importable functions. Use globally accessible callables and serializable arguments with persistent job stores.

Quickstart

From background.py
$ python -m pip install APScheduler==3.11.3
from apscheduler.schedulers.blocking import BlockingScheduler

def tick():
    print("tick")

scheduler = BlockingScheduler()
scheduler.add_job(tick, "interval", seconds=60)
scheduler.start()

APScheduler examples

From open-source projects on GitHub

Runs a small task queue.

Downloads / mo
15.5M
Stars
6.1K
Last release
3.5.4
License
MIT

Quickstart

From guide.html
$ python -m pip install huey==3.5.4
# tasks.py
from huey import SqliteHuey

huey = SqliteHuey("demo", filename="huey.db")

@huey.task()
def add(x, y):
    return x + y

# producer.py
import tasks

result = tasks.add(1, 2)

Queues jobs for background workers backed by Redis or Valkey.

Downloads / mo
13.1M
Stars
10.7K
Last release
3.0.0
License
BSD-2-Clause

Strengths

  • Schedules jobs through queue APIs. Use enqueue_at or enqueue_in for execution at a later time.
  • Repeats successful background jobs. Configure repeat counts and intervals on queued jobs.

Limitations

  • Failed jobs need retry configuration. Use retries separately when a failed repeating job should run again.
  • Cron scheduling is still beta. Treat CronScheduler as beta when choosing a recurring production scheduler.

Quickstart

From docs.md
$ python -m pip install rq==3.0.0
from redis import Redis
from rq import Queue

queue = Queue(connection=Redis())
job = queue.enqueue("math.floor", 2.7)

RQ examples

From open-source projects on GitHub

Runs Python callables periodically through an in-process scheduling loop.

Downloads / mo
6.9M
Stars
12.3K
Last release
1.2.2
License
MIT

Strengths

  • Schedules recurring Python callables. Express periodic jobs through intervals, weekdays, and time-of-day helpers.
  • Avoids extra scheduler processes. Run the scheduling loop inside the application without external package dependencies.

Limitations

  • Schedules disappear after restart. Register jobs again when the application starts.
  • Long jobs delay the loop. Move long-running work off the main scheduling thread.

Quickstart

From stable.md
$ python -m pip install schedule==1.2.2
import time
import schedule

def tick():
    print("tick")

schedule.every(10).seconds.do(tick)
while True:
    schedule.run_pending()
    time.sleep(1)

schedule examples

From open-source projects on GitHub

Runs job queues in Python with asyncio and Redis.

Downloads / mo
5.6M
Stars
3.0K
Last release
0.28.0
License
MIT

Quickstart

From index.html
$ python -m pip install arq==0.28.0 "redis>=5.3,<6"
import asyncio
from arq import create_pool
from arq.connections import RedisSettings

async def add(ctx, x, y):
    return x + y

class WorkerSettings:
    functions = [add]

async def main():
    redis = await create_pool(RedisSettings())
    try:
        await redis.enqueue_job("add", 1, 2)
    finally:
        await redis.aclose()

if __name__ == "__main__":
    asyncio.run(main())

arq examples

From open-source projects on GitHub

Runs a distributed task queue with full async support.

Downloads / mo
2.6M
Stars
2.4K
Last release
0.13.0
License
MIT

Quickstart

From getting-started.html
$ python -m pip install taskiq==0.13.0
import asyncio
from taskiq import InMemoryBroker

broker = InMemoryBroker()

@broker.task
async def add_one(value: int) -> int:
    return value + 1

async def main():
    await broker.startup()
    try:
        task = await add_one.kiq(1)
        result = await task.wait_result(timeout=2)
        print(result.return_value)
    finally:
        await broker.shutdown()

if __name__ == "__main__":
    asyncio.run(main())

Taskiq examples

From open-source projects on GitHub

Processes background tasks in Python.

Downloads / mo
2.5M
Stars
5.3K
Last release
2.2.1
License
LGPL-3.0-or-later

Quickstart

From guide.html
$ python -m pip install "dramatiq[redis]==2.2.1"
# tasks.py
import dramatiq
from dramatiq.brokers.redis import RedisBroker

dramatiq.set_broker(RedisBroker(url="redis://localhost:6379/0"))

@dramatiq.actor
def add(x, y):
    return x + y

# producer.py
import tasks

message = tasks.add.send(1, 2)

Dramatiq examples

From open-source projects on GitHub

FAQ

APScheduler suits cron, interval, and one-off jobs inside a running application. Celery suits periodic tasks that run on separate workers. schedule suits small scripts with an in-process polling loop.

APScheduler schedules Python jobs with date, interval, and cron triggers inside an application. Optional job stores keep jobs across restarts.

Celery beat is the scheduler that submits periodic tasks to Celery workers at set intervals or cron times.

Dramatiq is a background task processing library that runs Python functions on workers through a message broker.

APScheduler runs cron-style triggers inside a Python process. Celery beat and the RQ CronScheduler run them for jobs that execute on separate workers.

For coding agents

Found your job scheduler library? Help your agent use it.

Connect Exa so your coding agent can find the library’s documentation, check its API, and look up implementations while you build.

Run in your terminal

claude plugin install exa@claude-plugins-official