Skip to main content
Large ingestion jobs often partly fail because of timeouts, rate limits, empty pages, or API pagination. Ragrails exposes retry metadata and streaming crawl events so you can recover failed pieces and watch long jobs while they run.

Dead-letter queue for scraping

A DLQ captures retryable scrape failures. You can keep it in memory, save it to a file, pass a previous result’s DLQ back in, or retry from a saved path.
SDK
Retryable scrape errors include crawl failures and transient page failures. Cleanup failures such as empty extracted content are returned as errors but are not added to the DLQ.

API retry metadata

fetch() returns retryable request failures with retry_input. Store those errors if you want to resubmit failed API requests later.

API pagination

Use pagination config when the API returns more than one page. Always set a max_pages safety cap.
SDK
Each successful API page becomes one normalized document with metadata such as source_kind, method, page, item_count, max_pages, timeout, and elapsed_seconds.

Batch source patterns

For larger jobs, submit multiple URLs or API specs and keep partial successes.

Operational guidance