shivaam opened a new pull request, #69005: URL: https://github.com/apache/airflow/pull/69005
Add the `team_name` tag to the Edge executor sync duration metric for multi-team deployments. This follows the same pattern as #68593 for executor metrics: - use `self.team_name` as the metric tag source - wrap tags with `prune_dict` so global/no-team executors keep the existing empty tag set - keep the change scoped to the Edge executor metric only This PR covers the `edge_executor.sync.duration` item from #68996. Edge worker metrics and ECS executor metrics are being kept in separate PRs. Tests: - `uv run ruff format --check providers/edge3/src/airflow/providers/edge3/executors/edge_executor.py providers/edge3/tests/unit/edge3/executors/test_edge_executor.py` - `uv run ruff check providers/edge3/src/airflow/providers/edge3/executors/edge_executor.py providers/edge3/tests/unit/edge3/executors/test_edge_executor.py` - `git diff --check` - `uv run pytest providers/edge3/tests/unit/edge3/executors/test_edge_executor.py -q` - `breeze run pytest providers/edge3/tests/unit/edge3/executors/test_edge_executor.py -q` - `uvx prek run --from-ref upstream/main --stage pre-commit` Results: - ruff format/check passed - diff check clean - `20 passed, 1 warning` - pre-commit stage passed Related: #68996 --- ##### Was generative AI tooling used to co-author this PR? - [X] Yes - OpenAI Codex Generated-by: OpenAI Codex following [the guidelines](https://github.com/apache/airflow/blob/main/contributing-docs/05_pull_requests.rst#gen-ai-assisted-contributions) --- Drafted-by: OpenAI Codex (no human review before posting) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
