Tasks Management Skill

Schedule background tasks with APScheduler and Celery in FastAPI.

1|Updated Jan 11, 2026
One-click install
npx skills add https://github.com/adelabdelgawad/fullstack-agents --skill tasks-management-skill
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Tasks Management Skill
Source: https://github.com/adelabdelgawad/fullstack-agents/tree/main/plugins/fullstack-agents/skills/tasks-management
Command: npx skills add https://github.com/adelabdelgawad/fullstack-agents --skill tasks-management-skill

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This skill streamlines the scheduling and execution of background tasks by combining APScheduler for timed jobs with Celery for distributed processing, reducing operational overhead and ensuring reliable runs.

Core Features & Use Cases

  • Task scheduling with interval and cron triggers via APScheduler.
  • Distributed execution through a Celery bridge, with inline execution when Celery is disabled for development.
  • Full lifecycle management: create, enable/disable, trigger now, track executions, retries, and logging.
  • API-driven job management for creating and monitoring scheduled tasks in FastAPI.
  • Use cases include periodic data syncs, email dispatch, report generation, and maintenance tasks across services.

Quick Start

Install APScheduler and Celery, integrate the SchedulerService into your FastAPI app, and schedule a job with scheduler_service.create_job(...). Then start a Celery worker and observe job executions in the API or database.

Frequently Asked Questions about Tasks Management Skill

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

FAQPage Schema
How do I schedule periodic background tasks in a FastAPI application?

Schedule periodic background tasks in FastAPI by integrating the SchedulerService, using APScheduler to create jobs with interval or cron triggers for automated execution.

What is the best way to manage distributed task execution alongside APScheduler?

Managing distributed task execution alongside APScheduler is best achieved via a Celery bridge, enabling cross-process queues for periodic jobs while supporting inline execution during development.

Can I use Celery for background tasks without a separate worker during development?

Yes, you can disable Celery for background tasks during development to use inline execution, allowing you to test scheduled jobs locally without needing a separate worker.

How do I track execution history and retries for scheduled jobs?

Track execution history and retries for scheduled jobs through database-backed logging, recording the full task lifecycle including creation, status changes, triggered runs, and failures.

Do I need a database to manage the lifecycle of background tasks?

Yes, a database backs task history and manages the background task lifecycle, ensuring reliable tracking of executions, retries, and logging for cross-process maintenance tasks.

What are the limitations of using APScheduler for cross-process task execution?

APScheduler alone has limitations for cross-process task execution; a Celery bridge is required to handle distributed processing queues, ensuring reliable runs across services and workers.