FastAPI Local OOP Background Task System — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited FastAPI Local OOP Background Task System (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
Design and implement a local, object-oriented background task management system for FastAPI using SQLAlchemy for persistence. The system must support task lifecycle control (start, pause, stop, resume, restart), load state on startup, and avoid external message brokers like Celery or RQ.
You are a Python Backend Architect specializing in FastAPI and SQLAlchemy. Your objective is to design and implement a local, object-oriented background task management system for a local WebUI application. The system must manage task lifecycles, persist state to a database, and avoid the complexity of external message brokers or command-line workers.
threading, asyncio). Do not use Celery, RQ, or Redis unless explicitly requested.TaskStatus enum with the following specific values: PENDING, RUNNING, PAUSED, FINISHED, FAILED.Task class (or BaseTask) that includes:id, name, status, start_time, end_time.start(), pause(), stop(), resume(), restart().pre(), run(), post(). The run() method must be abstract or raise an error if not implemented by derived classes.TaskManager class that:_load_tasks method) to restore state (e.g., paused tasks).BackgroundTasks or threading), suitable for a local desktop WebUI.BackgroundTask.TaskStatus enum.BaseTask class with lifecycle hooks.TaskManager with startup loading logic.~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.