CloudSketch AI Logo
FeaturesTemplatesPricingEnterpriseAboutContactLog in
πŸŒ™β˜€οΈ
Log inStart free
Home/Templates/Data Engineering & Analytics

πŸ“Š Data Engineering & Analytics Β· State Machine

Data Pipeline Run States

The states of a single pipeline run in an orchestrator like Airflow, including retries, upstream failures and manual reruns.

More Data Engineering & Analytics templates

Drawing diagram…

What this diagram shows

  • Retries happen automatically before a run is marked failed
  • Downstream tasks are skipped when upstream data is missing
  • Any run can be cleared and rerun by an engineer

Prompt used

State machine for a pipeline run: Scheduled, Queued, Running, then Success. On error go to UpForRetry and back to Running up to 3 times, then Failed. If an upstream dependency failed the run is UpstreamFailed. Engineers can clear Failed or Success runs to rerun them.

Mermaid code
stateDiagram-v2
  [*] --> Scheduled
  Scheduled --> Queued: Start time reached
  Scheduled --> UpstreamFailed: Dependency failed
  Queued --> Running: Worker free
  Running --> Success
  Running --> UpForRetry: Task error
  UpForRetry --> Running: Retry, max 3
  UpForRetry --> Failed: Retries used up
  Failed --> Queued: Cleared by engineer
  Success --> Queued: Rerun requested
  Success --> [*]
  UpstreamFailed --> [*]

Related templates

C4 ArchitectureProData Engineering & Analytics

Modern Data Platform Architecture

A typical modern data stack: data is loaded from apps and SaaS tools into a cloud warehouse, modelled with dbt, orchestrated with Airflow and served to BI dashboards.

Data FlowData Engineering & Analytics

Change Data Capture Pipeline

How every insert, update and delete in an operational database is streamed to the data lake and search index in near real time using change data capture.

Database ERDData Engineering & Analytics

Sales Star Schema

A classic star schema for sales analytics: one fact table of order lines surrounded by date, customer, product, store and promotion dimensions.

FlowchartData Engineering & Analytics

Nightly Batch ETL Workflow

The steps of a nightly batch pipeline with data quality gates: extract, validate, transform, load and publish, stopping safely when checks fail.

DeploymentProData Engineering & Analytics

Real-time Streaming Analytics Deployment

Where a real-time analytics stack runs: Kafka for events, Flink for stream processing, a real-time OLAP database and live dashboards.

Data FlowData Engineering & Analytics

Data Lake Zones (Bronze, Silver, Gold)

The medallion pattern for a data lake: raw data lands in bronze, is cleaned in silver, and turned into business-ready tables in gold.