QUEUE_UNAVAILABLE — Async queue unavailable
Summary
Section titled “Summary”The job queue (Redis + BullMQ) is unavailable, so async work — anything that would return 202 Accepted — can’t be queued. Sync coding (POST /v1/code with under 50 responses) still works.
HTTP status
Section titled “HTTP status”503 Service Unavailable. Standard envelope. Usually includes Retry-After.
Example response
Section titled “Example response”{ "success": false, "error": { "code": "QUEUE_UNAVAILABLE", "message": "Job queue is temporarily unavailable. Retry async requests in 60 seconds.", "request_id": "req_01HXJZK4ABCDEF", "doc_url": "https://docs.surveycoder.io/errors/queue-unavailable" }}Why this happens
Section titled “Why this happens”- Redis is unreachable (restart, network blip, maintenance).
- BullMQ workers are stalled and won’t accept new jobs.
- Queue depth exceeded a circuit-breaker threshold.
How to fix it
Section titled “How to fix it”- Retry with backoff. Most queue blips resolve within a minute.
- For urgent work, split the job into batches under 50 responses each — those run sync without touching the queue.
- Check the status page — Redis outages are always posted.
Related
Section titled “Related”SERVICE_UNAVAILABLE- Coding pipeline — the 50-response threshold for sync vs async