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