/migrate-to-orchestra:airflow-sensors-to-orchestrafrom migrate-to-orchestra
Translates Airflow sensor operators (S3KeySensor, FileSensor, SqlSensor, ExternalTaskSensor, TimeSensor) into Orchestra sensor blocks. Use when migrating DAGs with poke_interval, mode='reschedule', or sensor-based waiting patterns.
Ships in migrate-to-orchestra. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Airflow sensors are tasks that poll an external system until a condition is met, then allow downstream tasks to proceed. In Orchestra, sensors are pipeline triggers — they live in the sensors: block at the pipeline root (not inside pipeline:). When all sensor checks pass, the pipeline run is triggered automatically.
Key difference: Airflow sensors are inline DAG steps. Orchestra sensors are external watchers that start pipeline runs. They use a cron window + polling interval model.
Sensor checks also carry a connection: field — for mapping the sensor's aws_conn_id=/conn_id= to the right Orchestra connection type, see airflow-connections-to-orchestra.
sensors:
<sensor-id>:
name: My Sensor # required, max 100 chars
cron: '0 8 * * ? *' # required — when the check window opens
timezone: UTC # required — IANA timezone
timeout_mins: 60 # required — max 7200; must be < cron interval
frequency_secs: 60 # optional — polling interval (60–600, default 60)
exclude: [] # optional — YYYY-MM-DD dates to skip
run_inputs: {} # optional — inputs to pass when sensor triggers
checks: # required — dict of SensorCheckModel
<check-id>:
integration: SNOWFLAKE # IntegrationsEnum
sensor_type: SNOWFLAKE_QUERY # SensorChecksEnum (see table below)
connection: my_snowflake_12345
parameters:
query: "SELECT COUNT(*) FROM daily_files WHERE date = CURRENT_DATE"
map_outputs: # optional — pipe check results to pipeline inputs
file_count: "result" # pipeline input name → check output field
alerts: # optional — sensor-level alerts
- name: sensor-timed-out
statuses: [FAILED]
destinations:
- integration: SLACK
destination: '#data-alerts'
sensor_type | Integration | What it checks |
|---|---|---|
AWS_S3_FILE | AWS_S3 | File exists at S3 prefix |
ADLS_FILE | AZURE_DATA_LAKE_STORAGE | File exists in ADLS container |
SFTP_FILE | SFTP | File exists on SFTP server |
SNOWFLAKE_QUERY | SNOWFLAKE | SQL query returns rows (or specific value) |
POSTGRES_QUERY | POSTGRES | SQL query returns rows |
GCP_BIG_QUERY_QUERY | GCP_BIG_QUERY | SQL query returns rows |
SQL_SERVER_QUERY | SQL_SERVER | SQL query returns rows |
DATABRICKS_QUERY | DATABRICKS | SQL query returns rows |
FABRIC_SYNAPSE_QUERY | FABRIC_SYNAPSE | SQL query returns rows |
ORCHESTRA_PIPELINE_STATUS | ORCHESTRA | Another pipeline completed with given status |
ORCHESTRA_TASK_STATUS | ORCHESTRA | One task in another pipeline finished with a given status |
ORCHESTRA_WEBHOOK_EVENT | ORCHESTRA | Webhook event received |
AWS_S3_FILE# Airflow
S3KeySensor(
task_id='wait_for_file',
bucket_key='data/daily/{{ ds }}/orders.csv',
bucket_name='my-data-bucket',
aws_conn_id='aws_default',
poke_interval=60,
timeout=3600,
)
# Orchestra
sensors:
wait-for-s3-file:
name: Wait for daily orders file
cron: '0 6 * * ? *'
timezone: UTC
timeout_mins: 60
frequency_secs: 60
checks:
s3-file-check:
integration: AWS_S3
sensor_type: AWS_S3_FILE
connection: aws_default_12345
parameters:
bucket_name: my-data-bucket
prefix: data/daily/
SNOWFLAKE_QUERY# Airflow
SqlSensor(
task_id='wait_for_data',
conn_id='snowflake_prod',
sql="SELECT COUNT(*) FROM orders WHERE created_date = '{{ ds }}'",
poke_interval=300,
timeout=7200,
)
# Orchestra
sensors:
wait-for-snowflake-data:
name: Wait for daily order data
cron: '0 4 * * ? *'
timezone: UTC
timeout_mins: 120
frequency_secs: 300
checks:
row-check:
integration: SNOWFLAKE
sensor_type: SNOWFLAKE_QUERY
connection: snowflake_prod_12345
parameters:
query: "SELECT COUNT(*) FROM orders WHERE created_date = CURRENT_DATE"
map_outputs:
order_count: "result" # passes row count to pipeline as input
ORCHESTRA_PIPELINE_STATUS# Airflow
ExternalTaskSensor(
task_id='wait_for_upstream',
external_dag_id='upstream_elt',
external_task_id=None, # wait for whole DAG
poke_interval=60,
timeout=3600,
)
# Orchestra — use trigger_events for upstream pipeline completion
trigger_events:
- type: pipeline
pipeline_id: "uuid-of-upstream-elt-pipeline"
statuses: [SUCCEEDED, WARNING]
Or use a sensor for polling-based wait:
sensors:
wait-for-upstream:
name: Wait for upstream ELT
cron: '0 5 * * ? *'
timezone: UTC
timeout_mins: 120
checks:
pipeline-check:
integration: ORCHESTRA
sensor_type: ORCHESTRA_PIPELINE_STATUS
parameters:
pipeline_id: "uuid-of-upstream-elt-pipeline"
status: SUCCEEDED
When external_task_id names a task instead of being None, use ORCHESTRA_TASK_STATUS -- it
waits for that one task rather than the upstream pipeline's whole run, so downstream work starts
without queueing behind the rest of the DAG:
task-check:
integration: ORCHESTRA
sensor_type: ORCHESTRA_TASK_STATUS
parameters:
pipeline_id: "uuid-of-upstream-elt-pipeline"
task_id: load_orders # the migrated name of external_task_id
statuses: [SUCCEEDED]
check_latest_run: false # default: ignore runs that finished before the window
Two behaviours differ from Airflow and are worth carrying into the conversion: Orchestra reads only
the task's final attempt, so a failure a retry recovers from won't satisfy a check waiting on
FAILED; and a task inside a matrix Task Group reports one status for the whole matrix, not one
per iteration. allowed_states=['failed'] on the Airflow side therefore does not convert
faithfully when the upstream task has retries
(Orchestra task sensor).
ADLS_FILEsensors:
wait-for-adls-file:
name: Wait for ADLS file
cron: '0 7 * * ? *'
timezone: UTC
timeout_mins: 60
checks:
adls-check:
integration: AZURE_DATA_LAKE_STORAGE
sensor_type: ADLS_FILE
connection: azure_adls_prod_12345
parameters:
container_name: raw-data
prefix: orders/daily/
from airflow.providers.amazon.aws.sensors.s3 import S3KeySensor
from airflow.providers.snowflake.operators.snowflake import SnowflakeOperator
with DAG("daily_pipeline", schedule_interval="0 8 * * *") as dag:
wait_file = S3KeySensor(
task_id="wait_for_file",
bucket_key="data/{{ ds }}/orders.csv",
bucket_name="my-bucket",
aws_conn_id="aws_default",
poke_interval=60,
timeout=3600,
)
transform = SnowflakeOperator(
task_id="transform",
snowflake_conn_id="snowflake_prod",
sql="INSERT INTO orders_final SELECT * FROM orders_raw",
)
wait_file >> transform
version: v1
name: daily-pipeline
sensors:
wait-for-orders-file:
name: Wait for daily orders file
cron: '0 6 * * ? *'
timezone: UTC
timeout_mins: 60
frequency_secs: 60
checks:
s3-check:
integration: AWS_S3
sensor_type: AWS_S3_FILE
connection: aws_default_12345
parameters:
bucket_name: my-bucket
prefix: data/
pipeline:
stage-transform:
tasks:
transform:
integration: SNOWFLAKE
integration_job: SNOWFLAKE_RUN_QUERY
name: transform
connection: snowflake_prod_12345
parameters:
statement: 'INSERT INTO orders_final SELECT * FROM orders_raw'
depends_on: []
sensors:, not inside pipeline:. They trigger a pipeline run when checks pass; they don't run as pipeline steps.timeout_mins must be shorter than the cron interval — a daily cron (0 8 * * ? *) with timeout_mins: 1500 would exceed 24 hours; cap it appropriately.cron is 6-field AWS EventBridge syntax, not Airflow's 5-field schedule_interval — minute hour day-of-month month day-of-week year, with exactly one of day-of-month/day-of-week set to ?. A 5-field string fails with "6 required, 5 provided."map_outputs — maps sensor check results to pipeline inputs:. The pipeline must declare matching inputs: for the values to be accessible via ${{ inputs.key }}.TimeSensor / TimeDeltaSensor — no Orchestra equivalent. Use cron scheduling with an appropriate start time offset instead.checks: entries for AND logic; create separate sensors for OR logic.trigger_events: — if the upstream pipeline is in Orchestra, trigger_events: is cleaner than a polling sensor.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub orchestra-hq/orchestra-skills --plugin migrate-to-orchestra52 skills in this plugin
/airbyte-cloud-airflow-to-orchestraUse this skill when the user wants to convert an Airflow task that uses AirbyteTriggerSyncOperator or AirbyteSensor (apache-airflow-providers-airbyte) into an equivalent Orchestra pipeline task targeting Airbyte Cloud. Triggers: any mention of migrating, converting, or rewriting Airflow Airbyte tasks to Orchestra; any Airflow DAG code containing AirbyteTriggerSyncOperator or AirbyteSensor pointed at Airbyte Cloud./airbyte-cloud-dagster-to-orchestraUse this skill when the user wants to convert a Dagster integration that syncs Airbyte Cloud — AirbyteCloudResource, build_airbyte_assets, load_airbyte_cloud_asset_specs, or airbyte_assets — into an equivalent Orchestra pipeline task targeting Airbyte Cloud. Triggers: any mention of migrating or rewriting Dagster Airbyte assets/resources to Orchestra; any Dagster code importing from dagster_airbyte pointed at Airbyte Cloud./airbyte-cloud-prefect-to-orchestraUse this skill when the user wants to convert a Prefect task that syncs Airbyte Cloud — AirbyteConnection block, trigger_sync_run_and_wait_for_completion, or AirbyteSyncResult — into an equivalent Orchestra pipeline task targeting Airbyte Cloud. Triggers: any mention of migrating or rewriting Prefect Airbyte tasks to Orchestra; any Prefect flow code importing from prefect_airbyte pointed at Airbyte Cloud.Other plugins' skills for the same job