WORKFLOWS

1

Overview

How Workflows works

Cloudflare Workflows runs durable, multi-step processes, preserving progress, retrying failures, and waiting for events without keeping compute idle.

Think of it this way

It's like a project manager who never loses the checklist. If a step fails, they resume from the right point instead of restarting the whole process.

Features

  • Durable execution
  • Automatic retries
  • Persistent sleep
  • External events
1/9
API TRIGGER🔘🚀 Inicia sob demandaEVENTO AGENDADO⏰Cron / Queue / WebhookCLOUDFLARE WORKFLOWSWORKFLOW INSTANCECada execução mantém estado e histórico próprios🆔instance-01→▶️running→📋status APIETAPA DURÁVEL💳"Cobrar cartão"↻ tenta de novo se falharETAPAS EM PARALELOPasso APasso Bexecutados ao mesmo tempoESTADO PERSISTIDOPasso 1 ✓Passo 2 ✓Passo 3...SLEEP E WAIT😴sleep()→🔔waitForEventzero custo enquanto esperaINSTANCE CONTROLpause()resume()terminate()EXECUÇÃO CONCLUÍDA✅Auditável, com logSISTEMAS EXTERNOS🌐APIs🗄️D1/R2🤖AIchamados via Workflow StepLEGENDAFluxo ativo na etapaHover