Add team_name tags to Edge worker metrics#69149
Merged
Merged
Conversation
shivaam
force-pushed
the
codex/edge-worker-metrics-68996
branch
from
June 30, 2026 13:35
f9bd113 to
e90f53c
Compare
shivaam
commented
Jun 30, 2026
shivaam
force-pushed
the
codex/edge-worker-metrics-68996
branch
from
June 30, 2026 14:05
e90f53c to
74f42fc
Compare
SameerMesiah97
approved these changes
Jun 30, 2026
SameerMesiah97
left a comment
Contributor
There was a problem hiding this comment.
Looks good. Could not find any issues.
Contributor
Author
|
@ferruzzi This Pr is waiting for your review not sure if you got a notification. |
vincbeck
approved these changes
Jul 10, 2026
joshuabvarghese
pushed a commit
to joshuabvarghese/airflow
that referenced
this pull request
Jul 16, 2026
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.
Add the
team_nametag to Edge worker metrics for multi-team deployments.This follows the same pattern as the merged core metric PRs and #69005:
prune_dictso global/no-team workers keep the existing tag setThis PR covers the Edge worker metrics from #68996:
edge_worker.heartbeat_countedge_worker.statusedge_worker.connectededge_worker.maintenanceedge_worker.jobs_activeedge_worker.concurrencyedge_worker.free_concurrencyedge_worker.num_queuesedge_worker.<sysinfo_key>gaugesedge_worker.ti.startedge_worker.ti.finishIt also passes the worker
team_namethrough the Edge executor orphan/liveness paths so worker reset and orphaned task-finish metrics keep the correct team attribution.Notes:
edge_executor.sync.durationseparately.Tests:
uv run ruff format --check providers/edge3/src/airflow/providers/edge3/executors/edge_executor.py providers/edge3/src/airflow/providers/edge3/models/edge_worker.py providers/edge3/src/airflow/providers/edge3/worker_api/routes/jobs.py providers/edge3/src/airflow/providers/edge3/worker_api/routes/worker.py providers/edge3/tests/unit/edge3/executors/test_edge_executor.py providers/edge3/tests/unit/edge3/worker_api/routes/test_jobs.py providers/edge3/tests/unit/edge3/worker_api/routes/test_worker.pyuv run ruff check providers/edge3/src/airflow/providers/edge3/executors/edge_executor.py providers/edge3/src/airflow/providers/edge3/models/edge_worker.py providers/edge3/src/airflow/providers/edge3/worker_api/routes/jobs.py providers/edge3/src/airflow/providers/edge3/worker_api/routes/worker.py providers/edge3/tests/unit/edge3/executors/test_edge_executor.py providers/edge3/tests/unit/edge3/worker_api/routes/test_jobs.py providers/edge3/tests/unit/edge3/worker_api/routes/test_worker.pygit diff --checkbreeze run pytest providers/edge3/tests/unit/edge3/executors/test_edge_executor.py providers/edge3/tests/unit/edge3/worker_api/routes/test_jobs.py providers/edge3/tests/unit/edge3/worker_api/routes/test_worker.py -quvx prek run --from-ref upstream/main --stage pre-commitbreeze ci selective-check --commit-ref HEADRelated: #68996
Was generative AI tooling used to co-author this PR?
Generated-by: OpenAI Codex following the guidelines
Drafted-by: OpenAI Codex (no human review before posting)