# APScheduler — card for AI agents

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

Category: Jobs, queues and workflows · PyPI package `apscheduler` · latest version 3.11.3 (checked 2026-11-01)
Install: `pip install apscheduler`
License: MIT (permissive)

In your own product (generator, app, hosted service): **yes**. Permissive license: ship it inside your own product, closed or open source, and keep its license and copyright notice.

## Rules for AI agents (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.

## What it is
- APScheduler (Advanced Python Scheduler) is an MIT-licensed Python library. The GitHub repository dates from 2016. The README calls it "a task scheduler and task queue system for Python" and says you can use it purely as a job queue if you do not need scheduling.
- Jobs run on triggers: cron-style, fixed interval, calendar-based, and one-off. Triggers can be combined, and you can write your own trigger class. Schedules and jobs can be stored in PostgreSQL, MySQL, SQLite or MongoDB, so they survive restarts. Deployments with several schedulers or workers coordinate through an event broker: PostgreSQL, Redis or MQTT.
- There are two release lines. The README describes the v4.0 series, which it labels a pre-release. The latest published release is 3.11.3, a bug-fix release. This profile is for Python developers who need cron-like jobs or a job queue inside a thread-based or asyncio/Trio application.

## Caveats
- 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 `ZoneInfo` time zone.
- Multi-worker setups need a broker: Running more than one scheduler or worker requires an event broker as well as a data store. The built-in brokers are PostgreSQL, Redis and MQTT.

## Numbers (AgentGid data)
- Gid Score: 66.5 (#580 of all tools, 3 of 48 in its category)
- Used in 48 public projects set up for AI coding agents (0.8%)
- Downloads last week: 10,082,497 (as of 2026-11-24), +9.9% over 4 weeks
- GitHub stars: 7,721 (as of 2026-11-24)
- Last push: 2026-11-21

## Often used with
Uvicorn 75.0%, python-dotenv 68.8%, FastAPI 62.5%, Requests 56.2%, Pydantic 50.0%, PyYAML 47.9%

## Checked alternatives (same job)
- Celery: https://agentgid.com/tools/celery/agent.md
- croniter: https://agentgid.com/tools/croniter/agent.md
- schedule: https://agentgid.com/tools/schedule/agent.md
- Huey: https://agentgid.com/tools/huey/agent.md

## Links
- AgentGid page: https://agentgid.com/tools/apscheduler/
- Repository: https://github.com/agronholm/apscheduler
- Source: https://github.com/agronholm/apscheduler#readme
- Source: https://github.com/agronholm/apscheduler
- Source: https://github.com/agronholm/apscheduler/releases

---
AgentGid's catalog is curated: every entry was checked against the maker's official pages (registry, repository, license and pricing pages) on the date shown; a license value shows the quote it stands on wherever AgentGid has one. Usage numbers come from AgentGid's own scan of public repositories set up for AI coding agents. Claims by makers are reported, not tested by AgentGid.
