Repository navigation
Fixes 27148: Avoid per-DAG Airflow pause state queries - #31990
Conversation
✅ PR checks passedThe linked issue has a description and all required Shipping project fields set. Thanks! |
✅ Playwright Results — workflow succeededValidated commit ✅ 109 passed · ❌ 0 failed · 🟡 0 flaky · ⏭️ 0 skipped · 🧰 0 lifecycle flaky PerformanceBlocking targets: ✅ met · Optimization targets: 🟡 in progress Shard-job maxima below are not the full workflow wall time; the linked run includes build, fixture, planning, and reporting. 🕒 Full workflow signal wall (to summary) 49m 14s ⏱️ Max setup 5m 12s · max shard execution 12m 1s · max shard-job elapsed before upload 18m 8s · reporting 4s 🌐 233.66 requests/attempt · 1.77 app boots/UI scenario · 0.00% common-shard skew Optimization targets still in progress:
How to debug locally# Download playwright-test-results-<shard> artifact and unzip
npx playwright show-trace path/to/trace.zip # view trace |
🚦 Removed from the merge queue —
|
# Conflicts: # ingestion/src/metadata/ingestion/source/pipeline/airflow/metadata.py
🚦 Removed from the merge queue —
|
🚦 Removed from the merge queue —
|
# Conflicts: # ingestion/.ruff-g004-baseline.json
Code Review 👍 Approved with suggestions 0 resolved / 1 findingsEliminates per-DAG Airflow pause-state queries by folding Consider adding test coverage for the observability refactor to exercise 💡 Quality: Observability refactor lacks test coverage📄 ingestion/src/metadata/ingestion/source/pipeline/airflow/metadata.py:894 📄 ingestion/src/metadata/ingestion/source/pipeline/airflow/metadata.py:997-1011 📄 ingestion/tests/unit/topology/pipeline/test_airflow.py:260-274 This commit removes the entire observability_cache mechanism and changes get_table_pipeline_observability from emitting one PipelineObservability per dag run (plus historical cached DAGs) to a single record per table built from the newest run. The correctness rests on the assumption that the server upserts observability keyed by pipeline FQN so only the newest run survives; if that assumption is wrong, historical observability is silently dropped. The added tests only cover AirflowTask xlet parsing, not this behavior. Given the project's testing philosophy, add a test exercising yield_pipeline_lineage_details + get_table_pipeline_observability that asserts the correct latest-run record is emitted per table and that the context is reset between sibling DAGs (the early-return path in yield_pipeline_lineage_details). 🤖 Prompt for agentsOptionsDisplay: compact → Showing less information. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source |
|
🚦 Removed from the merge queue —
|



Describe your changes:
Fixes #27148
Fetches the Airflow DAG pause state as part of the existing paginated serialized DAG query instead of issuing one additional database query per DAG. Airflow 2 preserves serialized DAGs without a DagModel row through a left outer join when undeployed pipelines are included.
Type of change:
High-level design:
N/A — small targeted bug fix.
Tests:
Use cases covered
Unit tests
Backend integration tests
Ingestion integration tests
Playwright (UI) tests
Manual testing performed
UI screen recording / screenshots:
Not applicable.
Checklist:
is_pausedinsideget_pipelines_list#27148 above.Greptile Summary
The PR folds Airflow pause-state retrieval into the existing serialized-DAG query, eliminating per-DAG database lookups.
DagModel.is_pausedalongside each serialized DAG.Confidence Score: 5/5
The PR appears safe to merge.
No blocking failure remains; the previously reported test weakness is addressed by executing the production query against a database and asserting active, paused, and serialized-only DAG results.
Important Files Changed
Reviews (3): Last reviewed commit: "Merge branch 'main' into assess-airflow-..." | Re-trigger Greptile