---
name: task_status
lang: py
domain: core
version: "1.0.0"
algebraic: sum
definition: |
  class TaskStatus(str, Enum):
      PENDING = "pending"
      PROCESSING = "processing"
      COMPLETED = "completed"
      FAILED = "failed"
description: "Estado de una tarea de larga duracion (graph building, simulation, report generation). Enum sum type con cuatro variantes: pending, processing, completed, failed."
tags: [task, status, enum, async, background]
uses_types: []
file_path: "python/types/core/task_status.py"
---

## Notas

Hereda de `str` para que los valores sean directamente serializables a JSON sin conversion adicional.
Usado por `Task` para expresar el ciclo de vida de una tarea background.
