airflow-adapter

โดย astronomer

รูปแบบอะแดปเตอร์ของ Airflow สำหรับความเข้ากันได้ของ API v2/v3 ใช้เมื่อทำงานกับอะแดปเตอร์ การตรวจจับเวอร์ชัน หรือการเพิ่มเมธอด API ใหม่ที่ต้องทำงานร่วมกับ…

npx skills add https://github.com/astronomer/agents --skill airflow-adapter

Airflow Adapter Pattern

Enables compatibility with both Airflow 2.x (/api/v1) and 3.x (/api/v2).

Architecture

MCP Tool → _get_adapter() → AirflowV2Adapter or AirflowV3Adapter → Airflow API

Version is auto-detected at startup.

Key Files

  • adapters/base.py - Abstract interface
  • adapters/airflow_v2.py - Airflow 2.x (/api/v1)
  • adapters/airflow_v3.py - Airflow 3.x (/api/v2)

Related Files

  • @api-differences.md - V2 vs V3 field/endpoint differences
  • @patterns.md - Implementation patterns

Quick Reference

adapter = _get_adapter()
dags = adapter.list_dags(limit=100)
run = adapter.trigger_dag_run("my_dag", conf={"key": "value"})

Skills เพิ่มเติมจาก astronomer

aip-user-stories
astronomer
สร้างสมุดรายการสูตรที่ผ่านการตรวจสอบจาก AIP พร้อมการใช้งาน PR (โหมดหลัง) หรือเรื่องราวผู้ใช้เชิงคาดการณ์จาก AIP ที่ไม่มีการใช้งาน (โหมดก่อน) ใช้…
official
airflow-java-sdk
astronomer
Guide for contributing to the Airflow Java SDK (AIP-108). Use this skill whenever a contributor is working in the `java-sdk/` directory or on the Java…
official
airflow-new-sdk
astronomer
คู่มือสำหรับการนำ SDK ภาษาใหม่สำหรับ Airflow (AIP-108) ไปใช้งาน ใช้ทักษะนี้เมื่อผู้มีส่วนร่วมต้องการเพิ่มการรองรับภาษาโปรแกรมมิ่งใหม่ —…
official
airflow-translations
astronomer
เพิ่มหรืออัปเดตคำแปลสำหรับอินเทอร์เฟซผู้ใช้ของ Apache Airflow แนะนำการตั้งค่าภาษา การสร้างไฟล์คำแปล การแปลตามภาษาเฉพาะ...
official
magpie-setup
astronomer
นำและบำรุงรักษาเฟรมเวิร์ก apache-magpie ในที่เก็บโปรเจกต์ผ่านกลไกการนำมาใช้แบบสแนปช็อต ทักษะเฟรมเวิร์กเดียวที่ถูกคอมมิตในที่เก็บของผู้ใช้นั้น…
official
prepare-providers-documentation
astronomer
Replace the manual commit-by-commit classification step in `breeze release-management prepare-provider-documentation` with AI-driven classification. For each…
official
chart-tests
astronomer
ใช้เมื่อเขียน แก้ไข ตรวจสอบ หรือรันการทดสอบ Helm chart สำหรับที่เก็บ Astronomer APC ครอบคลุมรูปแบบ pytest การใช้งาน render_chart() sub-chart…
official
circleci
astronomer
ใช้เมื่อเขียน แก้ไข หรือตรวจสอบการกำหนดค่า CircleCI สำหรับที่เก็บ Astronomer APC ครอบคลุมการจัดระเบียบสคริปต์ สคริปต์แบบอินไลน์เทียบกับภายนอก และ...
official