Ready
curl --request GET \
--url https://api.example.com/readyimport requests
url = "https://api.example.com/ready"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/ready', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/ready",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/ready"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.example.com/ready")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/ready")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_bodymeta
Ready
Readiness probe — public, unauthenticated.
Returns 200 only when this API process can reach its own datastores:
Postgres and both Redis DBs. Returns 503 with the failing subsystem
names ({"status": "not_ready", "failed": [...]}). Subsystem-level
*detail* (hostnames, exceptions) is logged via structlog and never
returned in the body.
Deliberately does **not** probe Celery workers. That leg was a Celery
`inspect().ping()` — a broadcast RPC over the broker with a 2.5 s
budget — and it flapped: on 2026-08-20 it produced ten 503s in 19
minutes, interleaved with 200s, while worker CPU sat at 0.2%. Worker
liveness is covered twice over by signals that ask the workers
directly: each worker service exposes its own /ready sidecar (broker
reachability plus a 90 s Celery heartbeat, src/workers/healthcheck.py),
and the `synthetic-probe` beat task runs every minute behind a Sentry
cron monitor. `/health/detailed` still reports worker status for
on-demand diagnosis.
Intended for Betterstack / external monitoring. **Do not** wire this
as Railway's container healthcheck — a 30 s Redis blip would restart
the API. See docs/deployment/external-monitoring.md.
GET
/
ready
Ready
curl --request GET \
--url https://api.example.com/readyimport requests
url = "https://api.example.com/ready"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/ready', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/ready",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/ready"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.example.com/ready")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/ready")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_bodyResponse
200 - application/json
Successful Response
