Skip to content

Type Alias: DlqRetryErrorCode

@kortexya/reasoninglayer


@kortexya/reasoninglayer / DlqRetryErrorCode

DlqRetryErrorCode = "dlq_entry_not_pending" | "dlq_retries_exhausted" | "dlq_document_in_flight" | "dlq_source_not_retained"

Defined in: src/types/ingestion.ts:1874

The code of a 409 refusal of POST /api/v1/ingest/dlq/{id}/retry.

  • 'dlq_entry_not_pending' — the entry is not pending (already retrying, succeeded or abandoned).
  • 'dlq_retries_exhausted' — the entry used up its max_retries.
  • 'dlq_document_in_flight' — the entry’s document is being ingested now.
  • 'dlq_source_not_retained' — the engine no longer holds the document’s ingestion task, so it cannot re-run it.

Read it with errorBodyCode(error) on the thrown ConstraintViolationError.

const code: DlqRetryErrorCode = 'dlq_retries_exhausted';