Skip to content

feat(dl-queue): Add POST /queue/retry endpoint - #43

Draft
BelgianNoise with Copilot wants to merge 3 commits into
mainfrom
copilot/dl-queue-add-retry-endpoint
Draft

feat(dl-queue): Add POST /queue/retry endpoint#43
BelgianNoise with Copilot wants to merge 3 commits into
mainfrom
copilot/dl-queue-add-retry-endpoint

Conversation

Copilot AI commented May 1, 2026

Copy link
Copy Markdown
Contributor

Adds an endpoint to retry a specific failed download request by resetting its status to PENDING.

  • New handler src/handlers/post-queue-retry.ts: Accepts { id: number }, validates the request exists and is not in PENDING/IN_PROGRESS state, then updates status to PENDING and updated to current date.
  • Route registration in src/index.ts: POST /queue/retry
curl -X POST /queue/retry \
  -H "Content-Type: application/json" \
  -H "Authorization: <secret>" \
  -d '{"id": 42}'
# 200 { "id": 42, "status": "PENDING", "updated": "..." }
# 400 if PENDING or IN_PROGRESS
# 404 if not found

Copilot AI changed the title [WIP] Add endpoint to retry specific failed request feat(dl-queue): Add POST /queue/retry endpoint May 1, 2026
Copilot AI requested a review from BelgianNoise May 1, 2026 16:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[dl-queue] Endpoint to retry specific failed request

2 participants