Background Scheduler

Schedule cron and interval jobs with APScheduler, logging, and timezone support.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/mariasebarespersona/Tum-AI --skill background-scheduler
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Background Scheduler
Source: https://github.com/mariasebarespersona/Tum-AI/tree/main/packages/automations/docs/background-scheduler
Command: npx skills add https://github.com/mariasebarespersona/Tum-AI --skill background-scheduler

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Scheduler centralizes cron/interval triggers with logging, an execution history, and timezone support. It implements a singleton pattern to avoid duplicate runners and provides a solid base for all periodic tasks.

Core Features & Use Cases

  • Cron and interval based triggers
  • Execution history and logs for auditability
  • Timezone-aware scheduling and singleton enforcement to prevent duplicates
  • Use cases: scheduled ETL, health checks, maintenance tasks, batch processing

Quick Start

Instantiate the Background Scheduler and register your first cron job, for example schedule check_status daily at 00:00.

Frequently Asked Questions about Background Scheduler

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I schedule cron jobs reliably across multiple services?

A centralized scheduler runs cron and interval jobs reliably across services by enforcing a singleton pattern to prevent duplicate runners. It manages periodic tasks like ETL pipelines and health checks with timezone awareness and execution history.

Why does my cron scheduler execute duplicate interval jobs simultaneously?

Duplicate interval job execution occurs when multiple scheduler instances run concurrently. A singleton pattern enforces a single runner instance, preventing duplicate task execution and ensuring centralized cron job scheduling remains reliable.

Can I configure timezone-aware scheduling for maintenance tasks?

Timezone-aware scheduling for maintenance tasks is supported natively. You can configure timezones directly when registering cron triggers, ensuring scheduled ETL pipelines and health checks execute at the correct local times.

What is the best way to log execution history for scheduled batch processing?

The best way to log execution history for scheduled batch processing is using a centralized scheduler with built-in logging. It records an execution history for auditability, allowing you to configure history length and log level.

Does APScheduler support singleton enforcement for periodic ETL pipelines?

APScheduler supports singleton enforcement for periodic ETL pipelines through this centralized scheduler. It applies a singleton pattern to avoid duplicate runners, ensuring your cron-based triggers and interval jobs execute only once per scheduled cycle.

How do I set up a daily health check using a cron trigger?

To set up a daily health check, instantiate the background scheduler and register a cron trigger for your task function at the desired time, such as daily at 00:00. The scheduler handles execution, logging, and history tracking automatically.