Skip to main content

EXTRACTION_STATES

@forge/monorepo


@forge/monorepo / backend/src / EXTRACTION_STATES

Variable: EXTRACTION_STATES

const EXTRACTION_STATES: readonly ["pending", "running", "extracted", "failed", "skipped"]

Defined in: backend/src/documents/index.ts:202

Extraction state on a file.

pending and failed are both terminal-ish states a user can see, and they are separate from the file's own state: a file is perfectly stored while its extraction is failed, and conflating the two would make an unreadable document look like a lost upload.