upstash-workflow
Installation
SKILL.md
Upstash Workflow Implementation Guide
Standard patterns for implementing Upstash Workflow + QStash async workflows in the LobeHub codebase.
π― The Three Core Patterns
Every workflow in LobeHub combines these three patterns. They exist because the platform constrains you in three ways: rate limits make blind fan-out dangerous, step limits cap a single workflow's size, and idempotency demands that retries don't double-process.
- π Dry-Run Mode β get statistics without triggering actual execution
- π Fan-Out Pattern β split large batches into smaller chunks for parallel processing
- π― Single Task Execution β each workflow execution processes exactly ONE item
Architecture Overview
All workflows follow the same 3-layer architecture: