What problem does it solve?
This Skill helps you design and operate a progressive, enterprise-grade infrastructure layer for Kailash workloads, so your workflows can scale from single-process SQLite to multi-worker PostgreSQL/MySQL while staying reliable through durable execution, checkpoints, scheduling, task queues, and idempotency.
Core Features & Use Cases
- Progressive Infrastructure Levels (0/1/2): Move from in-process SQLite (Level 0) to shared DB persistence (Level 1) to multi-worker execution with a task queue (Level 2) using environment variables only.
- Dialect-Portable SQL & Safe Identifier Handling: Use a QueryDialect strategy with canonical
? placeholders and mandatory identifier validation to prevent SQL injection and ensure cross-database compatibility.
- Durable Execution + Checkpointing: Resume workflows after crashes via ExecutionTracker checkpoints, CheckpointManager tiered persistence, and the DurableRequest state machine, optionally wired through DurableWorkflowServer.
- Distributed Primitives for Enterprise Ops: Scheduler (cron/interval/one-shot) with persistence, SQL task queue with
FOR UPDATE SKIP LOCKED, worker registry with heartbeats and dead-worker reaping, and at-most-once semantics through IdempotentExecutor.
Quick Start
Use the enterprise-infrastructure skill to run a resilient scheduled and durable workflow by setting KAILASH_DATABASE_URL (and optionally KAILASH_QUEUE_URL), then wiring WorkflowScheduler for cron and DurableWorkflowServer for durable execution in your service.