Skip to main content

Usage

from upsonic.durable import FileDurableStorage

# Create storage with custom path
storage = FileDurableStorage(path="./execution_states")

durable = DurableExecution(
    storage=storage,
    auto_cleanup=False,  # Keep files after completion
    debug=True
)

task = Task("Data processing", durable_execution=durable)

Params

ParameterTypeDescriptionDefault
pathstrDirectory path for checkpoint files”./durable_states”

Characteristics

  • 📁 Human-readable JSON format
  • ✅ Easy debugging and inspection
  • ✅ Simple backup and restore
  • ⚠️ Not suitable for distributed systems