Skip to main content
Version: 0.0.10 (stable)

agrag.common.data_models.document_run.DocumentRunState

Bases: StrEnum

Lifecycle state of the run that saves one document.

Attributes:

  • RUNNING – The run still saves chunks, and the open-time resume continues it.
  • PAUSED – The run was cancelled. Saved chunks stay, and only an explicit resume continues it.
  • FAILED – A chunk failed on every attempt. The cause is on the status.
  • COMPLETE – Every chunk is saved.

COMPLETE​

COMPLETE = 'complete'

FAILED​

FAILED = 'failed'

PAUSED​

PAUSED = 'paused'

RUNNING​

RUNNING = 'running'