[Airflow 2.x] check if stand alone dag processor is active in get_health endpoint#48612
Merged
pierrejeambrun merged 5 commits intoapache:v2-11-testfrom May 19, 2025
Merged
Conversation
Contributor
In Airflow 3 we support only standalone dag processor so you won't be able to turn it off. |
Contributor
Author
Sorry. This is for 2.x. I raised the PR to 2.x only |
bugraoz93
approved these changes
Apr 2, 2025
Co-authored-by: Bugra Ozturk <bugraoz93@users.noreply.github.com>
Contributor
Author
|
Converting to draft as I need to fix tests and I can't work on it right now. |
…g_processor_metrics_fix
pierrejeambrun
approved these changes
May 19, 2025
potiuk
pushed a commit
that referenced
this pull request
Feb 16, 2026
…lth endpoint (#48612) * check if stand alone dag processor is used * Update airflow/api/common/airflow_health.py Co-authored-by: Bugra Ozturk <bugraoz93@users.noreply.github.com> * fix tests * update tests --------- Co-authored-by: Bugra Ozturk <bugraoz93@users.noreply.github.com>
26 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
If I have a stand alone dag-processor and I turn it off later, health metrics will keep showing that the dag-processor is unhealthy. This PR fixes it to show None to indicate dag-processor no longer exists
EDIT: only for Airflow 2.x