Python job scheduling
Schedules Python functions with APScheduler, with cron jobs, persistence and misfire handling.
Claude's review
7/10 Solid APScheduler reference with the misfire-grace and multi-worker gotchas.
We asked Claude the question you would ask: would I be glad I installed this? We only sell skills it rates 7 or higher.
In detail
APScheduler is a Python library that runs functions on a schedule inside your own process, using cron expressions, fixed intervals or one-off dates, and can keep its jobs in a database so they survive restarts. Use when a user wants to "run a Python function every night", "replace crontab scripts", "schedule background jobs in Flask or FastAPI", "persist scheduled jobs in SQLite", or "stop missed runs from piling up". Covers the 3.x API that pip installs today.
How you use it
- Add it to your pack, then download your pack (1 credit).
- In Claude, open Customize > Skills and upload the zip. Code execution needs to be on under Settings > Capabilities.
- Ask Claude for the job in your own words. It uses the skill when your request matches what it does. Step by step guide
Safety check
Nothing risky found: no hidden instructions, no download and run, no reading of saved passwords or keys.
An automated scan lowers risk but cannot promise zero risk. How we check skills
Preview
The first lines of SKILL.md
---
name: apscheduler
description: >-
APScheduler is a Python library that runs functions on a schedule inside your own process, using cron expressions, fixed intervals or one-off dates, and can keep its jobs in a database so they survive restarts. Use when a user wants to "run a Python function every night", "replace crontab scripts", "schedule background jobs in Flask or FastAPI", "persist scheduled jobs in SQLite", or "stop missed runs from piling up". Covers the 3.x API that pip installs today.
license: Apache-2.0
compatibility: "Python 3.8+, pip install apscheduler (3.11.x); SQLAlchemy only for the database job store"
metadata:
author: terminal-skills
version: "1.0.0"
category: automation
tags: "apscheduler, python, cron, scheduler, background-jobs"
repository: https://github.com/agronholm/apscheduler
---
# APScheduler — schedule Python functions in-process
## Overview
APScheduler (Advanced Python Scheduler) lets an application schedule its own functions: "every 15 minutes", "weekdays at 08:30", "once at this timestamp". The scheduler runs inside your Python process, either in a background thread, blocking the main thread, or on an asyncio event loop. Jobs can live in memory or in a database through a job store.
Version note: `pip install apscheduler` installs the 3.x line (3.11.3 at the time of writing, Python 3.8+). The 4.x line is a pre-release with a different API (`Scheduler`, `AsyncScheduler`, `add_schedule`, data stores); pip skips it unless asked with `--pre`. Everything below is the 3.x API. If a snippet imports `apscheduler.schedulers.background` it is 3.x; do not mix it with 4.x names.
Four building blocks to know:
- Trigger: when to run (`date`, `interval`, `cron`, plus combining triggers).
- Job store: where jobs are kept (`MemoryJobStore` by default, `SQLAlchemyJobStore`, `MongoDBJobStore`, `RedisJobStore`).
- Executor: how jobs run (thread pool by default, process pool for CPU work, asyncio executor for coroutines).
- Scheduler: ties them together (`BackgroundScheduler`, `BlockingScheduler`, `AsyncIOScheduler`).
## Instructions
### Installation
```bash
python3 -m venv .venv
.venv/bin/pip install apscheduler sqlalchemy
```
`sqlalchemy` is needed only for `SQLAlchemyJobStore`. Check what you got with `.venv/bin/pip show apscheduler`.
...From TerminalSkills's repository, Apache-2.0 licence.
Related skills
-
Checked
n8n workflow builder
Creates, edits, validates and syncs n8n workflows as code, with safety checks before anything is deployed.
7/101 credit -
Checked
Make.com automation
Creates, runs and manages Make.com scenarios, connections and data stores through its API, straight from code.
7/101 credit -
Checked
n8n instance control
Creates, tests, activates and updates workflows on a live n8n instance through its API, with run history.
7/101 credit -
Checked
Zapier actions
Runs actions across thousands of apps through the official Zapier MCP server, confirming before any write.
7/101 credit -
Checked
Screen recording automation
Watches a screen recording of a manual task and writes scripts to automate it with tools you already have.
8/101 credit -
Checked
Home Assistant automations
Builds Home Assistant automations, scripts and dashboards the native way, so your smart home runs reliably.
8/101 credit