Skip to main content

Usage

from upsonic.durable import SQLiteDurableStorage

# Create storage with custom database
storage = SQLiteDurableStorage(db_path="./executions.db")

durable = DurableExecution(storage=storage)
task = Task("Analytics task", durable_execution=durable)

Params

ParameterTypeDescriptionDefault
db_pathstrSQLite database file path”./durable_executions.db”

Characteristics

  • 🗄️ Single-file database
  • ✅ ACID transactions
  • ✅ Queryable execution history
  • ✅ Efficient for thousands of executions