"""Shared status constants used across backend project/task flows."""

PROJECT_STATUS_PENDING = "pending"
PROJECT_STATUS_PARSING = "parsing"
PROJECT_STATUS_READY = "ready"
PROJECT_STATUS_ERROR = "error"

TASK_STATUS_QUEUED = "queued"
TASK_STATUS_RUNNING = "running"
TASK_STATUS_SUCCESS = "success"
TASK_STATUS_FAILED = "failed"
TASK_STATUS_CANCELLED = "cancelled"

TASK_ACTIVE_STATUSES = {TASK_STATUS_QUEUED, TASK_STATUS_RUNNING}
TASK_TERMINAL_STATUSES = {TASK_STATUS_SUCCESS, TASK_STATUS_FAILED, TASK_STATUS_CANCELLED}
