# schedule — card for AI agents

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

Category: Jobs, queues and workflows · PyPI package `schedule` · latest version 1.2.2 (checked 2026-11-01)
Install: `pip install schedule`
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)

## schedule
- Install with `pip install schedule`, then declare jobs with chains like `schedule.every(10).minutes.do(job)`.
- Jobs only fire when `schedule.run_pending()` is called. Run it in a loop with `time.sleep(1)`, as the README does.
- Pass job arguments through `.do()`, for example `.do(job_with_argument, name="Peter")`.
- For a time zone, pass it as the second argument to `.at()`, for example `.at("12:42", "Europe/Amsterdam")`.
- The scheduler does not account for job run time. Move long-running jobs off the main thread (see the docs' Parallel execution section).
- Do not pick schedule when the task needs schedules that survive restarts, sub-second precision, multi-threaded execution, or workday and holiday rules. The docs say to look elsewhere.

## Agent Skills for it
- schedule-with-superhuman from ParadevAI/Paradev: `npx skills add ParadevAI/Paradev --skill schedule-with-superhuman`
- schedule-task from openakita/openakita: `npx skills add openakita/openakita --skill schedule-task`

## What it is
- schedule is a small MIT-licensed Python library for running functions on a timetable. Daniel Bader created it, and the GitHub repository dates from 2013-05-19. The README says it was inspired by Adam Wiggins' article "Rethinking Cron" and the clockwork Ruby module. Its tagline is "Python job scheduling for humans."
- You build each job with a chain of calls, such as `schedule.every(10).minutes.do(job)`. You then call `schedule.run_pending()` in a loop that sleeps for a second between passes. The scheduler lives in the same process as your code. The README says there are "no external dependencies" and "No extra processes needed!"
- It is for scripts and services that need a function to fire every few seconds, hourly, or on a given weekday at a set time. The docs say it is "designed to be a simple solution for simple scheduling problems". They also list the cases where you should look elsewhere.

## Caveats
- The docs list what it will not do: The maintainers say to look elsewhere if you need job persistence across restarts, sub-second timing, multi-threaded execution, or workday and holiday rules.
- Long jobs push the schedule back: The docs say the scheduler does not count how long a job takes. Slow jobs need to run off the main thread, and the docs point to their Parallel execution section for a sample.
- You own the loop: Jobs only fire when your code calls `run_pending()`, which the README does inside a `while True` loop. Keeping that loop from blocking the main thread is a question the docs' FAQ answers separately.
- Failure handling is up to you: One developer who used it at work writes that the library has no built-in error handling or failure notifications. Jobs can catch their own errors, but you have to write that code.

## Numbers (AgentGid data)
- Gid Score: 57.4 (#1225 of all tools, 10 of 48 in its category)
- Used in 16 public projects set up for AI coding agents (0.3%)
- Downloads last week: 1,509,919 (as of 2026-11-24), +11.1% over 4 weeks
- GitHub stars: 12,267 (as of 2026-11-24)
- Last push: 2024-05-25

## Often used with
python-dotenv 88.1%, Requests 78.6%, NumPy 60.7%, pandas 57.1%, Pydantic 56.0%, Uvicorn 54.8%

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

## Links
- AgentGid page: https://agentgid.com/tools/schedule/
- Homepage: https://github.com/dbader/schedule
- Repository: https://github.com/dbader/schedule
- Source: https://github.com/dbader/schedule#readme
- Source: https://github.com/dbader/schedule
- Source: https://pypi.org/project/schedule/
- Source: https://schedule.readthedocs.io/

---
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.
