Skip to main content

droploft-tasks

Background task runs — list, inspect, retry. Use this to debug async failures from doc +upload, publish, etc.

Source facts

Repository
langgenius/droploft-skills
Last source activity
April 27, 2026 at 07:02
Detected SKILL.md language
English
Stars
2
Forks
0

Install options

The review-first prompt is selected by default. You can switch to a direct command or download a local copy.

Review the source files

Read SKILL.md and any companion files shown by SkillsMP before deciding whether to install.

Showing SKILL.md

SKILL.md
Source instructions · Read-only preview
name
droploft-tasks
version
0.2.0
description
Background task runs — list, inspect, retry. Use this to debug async failures from doc +upload, publish, etc.
metadata
{"requires":{"bins":["droploft"],"skills":["droploft-shared"]},"cliHelp":"droploft tasks --help"}
# Droploft v2 CLI — Tasks Skill Async work runs as **task runs**. The most common producer is publish/optimize, kicked off by `doc +upload` or `documents publish`. Each row tracks status, attempts, and `error_message`. ## Statuses `pending` → `running` → `success` | `failed` | `cancelled` (`success` is the canonical terminal state; v1 spec called it `succeeded` — v2 uses `success`. The CLI accepts both when polling.) ## Layer 2 verbs ```bash droploft tasks list # most recent first droploft tasks list --format table # human-readable droploft tasks get <task-id> # one row droploft tasks retry <task-id> # re-enqueue a failed task ``` ## Patterns ### Fish out the most recent failure ```bash droploft tasks list --format json --jq '.[] | select(.status=="failed")' | head ``` ### Wait for a publish you fired off without `--no-wait` `doc +upload` polls automatically. If you used `--no-wait`, follow up: ```bash TASK_ID=$(droploft documents publish <doc-id> --format json --jq '.data.task_id') while true; do STATUS=$(droploft tasks get "$TASK_ID" --format json --jq '.data.status') case "$STATUS" in success|failed|cancelled) break;; esac sleep 3 done echo "final: $STATUS" ``` ## Errors - `not_found` (exit 4) — the task belongs to another user, or doesn't exist. - `tasks retry` on a non-failed row returns 409 conflict.
View on GitHub