Nagai-Ryo-33 opened a new pull request, #51559:
URL: https://github.com/apache/airflow/pull/51559
This pull request introduces a new helper class for constructing Cloud Run
Job Detail Links and integrates it into the existing Cloud Run operators and
links in the Google Cloud provider for
Airflow. The most important changes include the addition of the
CloudRunJobDetailLink class, its integration into the
CloudRunExecuteJobOperator, and the necessary imports and configurations.
## New feature addition:
- Added `CLOUD_RUN_JOB_DETAIL_LINK` constant to construct URLs for Cloud
Run Job Detail Links in `airflow/providers/google/cloud/links/cloud_run.py`.
- Created `CloudRunJobDetailLink` class to handle the construction and
persistence of Cloud Run Job Detail Links in
`airflow/providers/google/cloud/links/cloud_run.py`.
## Integration into existing operators:
- Imported `CloudRunJobDetailLink` in
`airflow/providers/google/cloud/operators/cloud_run.py` to make it available
for use in Cloud Run operators.
- Updated `operator_extra_links` in `CloudRunExecuteJobOperator` to
include `CloudRunJobDetailLink` in
`airflow/providers/google/cloud/operators/cloud_run.py`.
- Added logic to persist Cloud Run Job Detail Links in the execute method
of `CloudRunExecuteJobOperator` in
`airflow/providers/google/cloud/operators/cloud_run.py`.
## Configuration update:
- Added `CloudRunJobDetailLink` to the extra-links section in
`airflow/providers/google/provider.yaml` to ensure it is recognized as an extra
link.
This enhancement allows users to directly navigate from Airflow UI to
Google Cloud Console Cloud Run Job details page, improving observability and
debugging experience for Cloud Run job
executions.
<!-- Please keep an empty line above the dashes. -->
---
**^ Add meaningful description above**
Read the **[Pull Request
Guidelines](https://github.com/apache/airflow/blob/main/contributing-docs/05_pull_requests.rst#pull-request-guidelines)**
for more information.
In case of fundamental code changes, an Airflow Improvement Proposal
([AIP](https://cwiki.apache.org/confluence/display/AIRFLOW/Airflow+Improvement+Proposals))
is needed.
In case of a new dependency, check compliance with the [ASF 3rd Party
License Policy](https://www.apache.org/legal/resolved.html#category-x).
In case of backwards incompatible changes please leave a note in a
newsfragment file, named `{pr_number}.significant.rst` or
`{issue_number}.significant.rst`, in
[airflow-core/newsfragments](https://github.com/apache/airflow/tree/main/airflow-core/newsfragments).
--
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]