cloudflare-workflows

Orchestrate durable multi-step workflows on Cloudflare Workers with retries and state persistence.

52|6|Updated Nov 24, 2025
One-click install
npx skills add https://github.com/ovachiever/droid-tings --skill cloudflare-workflows-ovachiever
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cloudflare-workflows
Source: https://github.com/ovachiever/droid-tings/tree/main/skills/cloudflare-workflows
Command: npx skills add https://github.com/ovachiever/droid-tings --skill cloudflare-workflows-ovachiever

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) and assets (resource) components.

What problem does it solve?

Enables durable, long-running workflows on Cloudflare Workers with automatic retries, state persistence, and multi-step orchestration.

Core Features & Use Cases

  • Step.do with retries, step.sleep, step.waitForEvent
  • State persistence across steps and long-running tasks
  • Event-driven workflows and human-in-the-loop patterns
  • Observability and error handling for production reliability

Quick Start

Start with the basic workflow template and expand with scheduled, event-driven, or multi-step patterns.

Frequently Asked Questions about cloudflare-workflows

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build long-running workflows on Cloudflare Workers?

Long-running workflows on Cloudflare Workers use the Step API (do, sleep, sleepUntil, waitForEvent) to orchestrate multi-step processes with automatic retries and state persistence. Steps execute durably across hours or days, with each step's state saved independently, enabling recovery from failures without re-executing completed steps.

Can I configure retry behavior for individual workflow steps?

Yes, durable workflows support configurable retry backoffs and timeouts per step. Each step can define its own retry strategy, allowing fine-grained control over how failures are handled across different stages of your workflow.

How do I handle event-driven workflows and human-in-the-loop patterns?

Use step.waitForEvent to pause workflow execution until external events arrive, enabling event-driven orchestration and human approval gates. State persists while waiting, and workflows resume automatically when events trigger, supporting multi-day approval cycles.

What happens to workflow state if a step fails or times out?

Workflow state persists per step with JSON-serializable values, so on failure or timeout, retries resume from the failed step without replaying completed steps. This isolation ensures idempotency and reduces wasted computation across retry attempts.

Are durable workflows compatible with Wrangler deployments?

Yes, durable workflows return JSON-serializable values and deploy as Cloudflare Workers via Wrangler, integrating seamlessly into standard deployment pipelines while maintaining state persistence and retry guarantees across long-running tasks.

When should I use durable workflows instead of standard Workers?

Use durable workflows for multi-step processes spanning hours to days, API orchestration requiring retries, scheduled tasks with state checkpoints, or event-driven workflows needing durability guarantees. Standard Workers suit stateless, request-response patterns.