droploft-tasks
Background task runs — list, inspect, retry. Use this to debug async failures from doc +upload, publish, etc.
소스 정보
- 저장소
- langgenius/droploft-skills
- 최근 소스 활동
- 2026년 4월 27일 07:02
- 감지된 SKILL.md 언어
- 영어
- 스타
- 2
- 포크
- 0
설치 방법
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
소스 파일 검토
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
SKILL.md 표시 중
SKILL.md
소스 지침 · 읽기 전용 미리보기- 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.
GitHub에서 보기