Skip to content
Agents tracked: 506 Releases (7d): 634 Agent status: 3 with issuesSince last limit reset: Claude 15d · Codex 0d For AI agents: Markdown Updated Nov 26, 2026

APScheduler

In-process task scheduler with Cron-like capabilities for Python applications.

Jobs, queues and workflowsPYPI

GitHub

1. License

License from PyPI classifier.

github.com/agronholm/apscheduler

From the package registry and GitHub, checked daily. Tap a verdict to see its source.How we checkedReport an error

What APScheduler does

APScheduler is both a scheduler and a task queue, in sync and async flavors, and it can share one data store across many schedulers and workers. The README that describes all this covers a v4 pre-release that it says not to use in production.

APScheduler popularity

66 / 100
Gid Score, #580 overall
10.1M
downloads a week, pypi
7,721
GitHub stars
48
agent projects use it
APScheduler: downloads per weekPyPI, apscheduler 10,017,897
APScheduler: GitHub starsagronholm/apscheduler 7,721

Gid Score measures public popularity and activity, not quality. How the Gid Score is calculated

How APScheduler is used

  • APScheduler is a dependency in 48 of the 6,258 public GitHub projects set up for AI coding agents that we scanned (3.0% of the 1,623 Python ones), #1 of 48 in jobs, queues and workflows.
  • Counting the projects our scan samples by dependency (Solana 3,067, Ethereum and EVM 1,774, 3D and games 3,130, agent frameworks and SDKs 13,750), it appears in 327; those are left out of every share on this page.
  • The most used alternative in our scan is Celery (37 projects).
  • Projects that use it most often also use Uvicorn (75.0%), python-dotenv (68.8%), FastAPI (62.5%).
  • It is more common in projects set up for OpenClaw (5.1%) than for GitHub Copilot (0.4%).

By coding agent

25 projects, 0.8%
17 projects, 5.1%
14 projects, 0.6%
13 projects, 0.4%
7 projects, 1.5%

Often used with

In 75.0% of its projects
In 68.8% of its projects
In 62.5% of its projects
In 56.2% of its projects
In 50.0% of its projects
In 47.9% of its projects
In 47.9% of its projects
In 47.9% of its projects

APScheduler in practice

Strengths

Queue-only mode

The README says the library can serve as a job queue on its own when you have no use for time-based scheduling.

Threads or asyncio/Trio

It ships synchronous and asynchronous flavors. The README says it fits thread-based apps and asyncio or Trio apps, and it includes docs for WSGI and ASGI web apps.

Jobs survive restarts

Schedules and jobs can be kept in PostgreSQL, MySQL and derivatives, SQLite or MongoDB. They then survive process and node restarts and can be shared between instances.

Several nodes, one store

Multiple schedulers and workers can point at a shared data store. The maintainers say this gives "a degree of high availability and horizontal scaling."

Watch out for

v4 is not for production

The README warns that the v4.0 series may break backwards compatibility with no migration path. It says in capitals not to use it in production.

README and stable release differ

The README describes v4 features such as data stores and event brokers. The latest published release is 3.11.3. Check which line the docs you are reading belong to.

DST stall fixed only in 3.11.3

Before 3.11.3, sub-minute interval jobs could stall through a DST spring-forward gap when the scheduler used a <code>ZoneInfo</code> time zone.

More about APScheduler

Packages around it
  • python-dotenv: .env file loading
  • requests: HTTP client
  • pydantic: data validation
  • fastapi: web API framework
  • uvicorn: ASGI server
  • solders: solders
More in Jobs, queues and workflows

Alternatives

APScheduler This page

MITGid 6610.1M/wk

Celery

Distributed task queue for Python executing jobs asynchronously across workers.

BSD-3-ClauseGid 7013.3M/wk

croniter

Cron expression parser and iterator for Python, schedule tasks with cron-like timing.

MITGid 5523.5M/wk

schedule

Simple Python library for scheduling jobs to run at regular intervals.

MITGid 571.5M/wk

Huey

Small task queue for Python with Redis or SQLite.

MITGid 514.8M/wk

Compare APScheduler with another tool

Get started

Install it.

pip install apscheduler

Rules for your agent

Paste into AGENTS.md or CLAUDE.md
## APScheduler
- Do not use the v4.0 series in production. The README marks it as a pre-release that may break compatibility without a migration path.
- When reading the README or docs, check whether they describe v4 or the 3.x line (latest release 3.11.3).
- If schedules must survive restarts or be shared between instances, configure a persistent data store: PostgreSQL, MySQL, SQLite or MongoDB.
- With more than one scheduler or worker, also configure an event broker: PostgreSQL, Redis or MQTT.
- Pick the synchronous flavor for thread-based apps and the asynchronous flavor for asyncio or Trio apps.
- Use the built-in limits on simultaneous jobs per function and on how late a job may start, instead of writing your own guards.
- If you run sub-minute interval jobs with a `ZoneInfo` time zone, use 3.11.3 or later to avoid the DST spring-forward stall.