Infrastructure API (Queues)
API for creating batch jobs and triggering metadata synchronization using Cloudflare Queues.
Base path: /api/v1/queues
POST /api/v1/queues/research
Section titled “POST /api/v1/queues/research”Research discovery (URL processing) batch creation. Request body: country , category , urls (1~10000), chunkSize (optional, default 100).
POST /api/v1/queues/liveness
Section titled “POST /api/v1/queues/liveness”Liveness (domain survival) check batch creation. Request body: country , domains (1~10000), chunkSize (optional, default 50).
POST /api/v1/queues/contract
Section titled “POST /api/v1/queues/contract”Contract(Seed contract) creation batch. Request body: country , category , domainIds (1~1000), chunkSize (optional, default 20).
GET /api/v1/queues/batch/:batchId
Section titled “GET /api/v1/queues/batch/:batchId”Retrieve status (or result) of a specific batch ID.
POST /api/v1/queues/trigger/metadata-sync
Section titled “POST /api/v1/queues/trigger/metadata-sync”Metadata synchronization trigger.
- Implementation:
src/routes/queues.ts. Queue bindings: RESEARCH_QUEUE, LIVENESS_QUEUE, CONTRACT_QUEUE, etc. (wrangler.jsonc).