New advertisers: 50% off your first month with code FIRSTMONTHSee slots
astronomer avatar

Airflow Hitl

Pause Airflow DAGs for human approval, form input, or branching decisions via deferrable HITL operators.

skills.sh installs
992
GitHub stars
463
last updated
Aug 21, 2026
View on GitHub

What it does

  • Covers approval gates, form collection, and human-driven branching, with Required Actions UI and REST API responses
  • Includes five classes (ApprovalOperator, HITLOperator, HITLBranchOperator, HITLEntryOperator, HITLTrigger) and a canonical approval-gate example
  • Enforces that every defaults value appears in options, and that branch options resolve to downstream task ids
  • Designed for Airflow 3.1+ DAGs that need a human in the loop, not for AI/LLM task calls

Install

$ npx -y skills add astronomer/agents --skill airflow-hitl -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Airflow Human-in-the-Loop Operators

Pause a DAG until a human responds via the Airflow UI or REST API. HITL operators are deferrable — they release their worker slot while waiting.

Requires Airflow 3.1+ (af config version).

UI location: Browse → Required Actions. Respond from the task instance page's Required Actions tab.

Cross-references: migrating-ai-sdk-to-common-ai for AI/LLM task decorators; airflow for registry and API discovery commands used below.


Step 1 — Pick the capability you need

CapabilityClass (verify in Step 2)
Approve or reject; downstream skips on rejectApprovalOperator
Present N options and return which were chosenHITLOperator
Branch to one or more downstream tasks based on a choiceHITLBranchOperator
Collect a form (no approve/select step)HITLEntryOperator
Use the HITL trigger directly (advanced / custom operators)HITLTrigger

This is the only place class names are hardcoded. The provider adds, renames, and removes params across releases — do not copy parameter lists from memory. Fetch the current signature before writing code.


Details

Repository
github.com/astronomer/agents
Categories
Workflow Automation, Backend & APIs
First seen
May 16, 2026

More from astronomer/agents

All 24

Similar to Airflow Hitl

More Workflow Automation