fix(queue): add --format=json and --limit flags to queue list #258

Merged
shoko merged 1 commits from fix/issue-246 into main 2026-04-08 08:26:50 +02:00
Owner

Summary

  • Add --format=json flag to output queue items in JSON format with items, total, and pending fields
  • Add --limit=N flag (default 10) to control how many items to return
  • Sort pending tasks by pending_since ascending

JSON Output Format

{
  "items": [
    {"id": "q_123", "issue_ref": "...", "message": "...", "state": "pending", "pending_since": "...", "notified_at": null, "completed_at": null, "error": null}
  ],
  "total": N,
  "pending": N
}

Closes #246

## Summary - Add `--format=json` flag to output queue items in JSON format with `items`, `total`, and `pending` fields - Add `--limit=N` flag (default 10) to control how many items to return - Sort pending tasks by `pending_since` ascending ## JSON Output Format ```json { "items": [ {"id": "q_123", "issue_ref": "...", "message": "...", "state": "pending", "pending_since": "...", "notified_at": null, "completed_at": null, "error": null} ], "total": N, "pending": N } ``` ## Related Issue Closes #246
shoko added 1 commit 2026-04-08 08:21:13 +02:00
han approved these changes 2026-04-08 08:26:04 +02:00
han left a comment
First-time contributor

lgtm

lgtm
shoko merged commit c14cb5aec8 into main 2026-04-08 08:26:50 +02:00
Sign in to join this conversation.