Public BetaRisk models continue to evolve during validation.
Server-side Queue Worker

Scale large wallet analyses with safer workers.

Tri-Proof Protocol processes AnalysisBatch jobs in a server-side worker queue. The analysis page only polls status; it does not run wallet processing from the browser.

Multi-batch worker
Processes up to maxBatches in one request with a time budget.
Stale recovery
Processing batches older than the stale threshold are returned to the queue or failed after retries.
Webhook retry
Failed or pending webhook deliveries can be retried by a worker call.
Run analysis queue
Configured for Vercel Cron and safe for repeated worker calls.
curl -X POST "https://triproofprotocol.com/api/worker/analysis-queue?maxBatches=5&timeBudgetMs=25000&recoverStale=true" \
  -H "Authorization: Bearer YOUR_WORKER_SECRET"
Queue status
Returns pending, processing, completed, failed, and stale counts.
curl "https://triproofprotocol.com/api/worker/analysis-queue" \
  -H "Authorization: Bearer YOUR_WORKER_SECRET"
Webhook retry
Retries pending/failed deliveries below maxAttempts.
curl -X POST "https://triproofprotocol.com/api/worker/webhook-retry?limit=10&maxAttempts=3" \
  -H "Authorization: Bearer YOUR_WORKER_SECRET"