task-queue
Use for persistent task-queue with priorities + daemon.
Files1
View on GitHubSKILL.mdskills/system/task-queue/SKILL.md
GitHubTask Queue
Persistente JSON-basierte Task-Queue mit Prioritäten, Daemon-Modus und Retry.
Overview
Verwaltet asynchrone Tasks mit Priorität 1-5, automatischer Verarbeitung im Daemon-Modus und Retry-Logik.
When to Use
--addum Tasks in die Queue zu stellen--processfür manuelle Verarbeitung--daemonfür automatische Verarbeitung alle 10s--listfür Queue-Übersicht--statsfür Metriken
Usage
python scripts/task-queue.py --add '{"type":"backup","payload":{},"priority":1}'
python scripts/task-queue.py --list --status pending
python scripts/task-queue.py --process
python scripts/task-queue.py --stats
python scripts/task-queue.py --retry <id>
python scripts/task-queue.py --cancel <id>
Verification
python scripts/task-queue.py --add '{"type":"test","payload":{"cmd":"echo ok"},"priority":3}' && python scripts/task-queue.py --process && python scripts/task-queue.py --stats
Troubleshooting
| Problem | Lösung |
|---|---|
| Race-Condition im Daemon | Wurde via RLock + atomare Updates gefixt |
| Queue-Korruption | queue.json manuell reparieren oder löschen |