turbaszek commented on a change in pull request #10343: URL: https://github.com/apache/airflow/pull/10343#discussion_r479943237
########## File path: airflow/providers/google/cloud/operators/dataproc.py ########## @@ -41,13 +41,63 @@ from google.protobuf.json_format import MessageToDict from airflow.exceptions import AirflowException -from airflow.models import BaseOperator -from airflow.providers.google.cloud.hooks.dataproc import DataprocHook, DataProcJobBuilder +from airflow.models import BaseOperator, BaseOperatorLink +from airflow.models.taskinstance import TaskInstance +from airflow.providers.google.cloud.hooks.dataproc import ( + DataprocHook, + DataProcJobBuilder, +) from airflow.providers.google.cloud.hooks.gcs import GCSHook from airflow.utils import timezone from airflow.utils.decorators import apply_defaults from airflow.version import version as airflow_version +DATAPROC_BASE_LINK = "https://console.cloud.google.com/dataproc" +DATAPROC_JOB_LOG_LINK = DATAPROC_BASE_LINK + "/jobs/{job_id}?region={region}&project={project_id}" +DATAPROC_CLUSTER_LINK = ( + DATAPROC_BASE_LINK + "/clusters/{cluster_name}/monitoring?" "region={region}&project={project_id}" Review comment: ```suggestion DATAPROC_BASE_LINK + "/clusters/{cluster_name}/monitoring?region={region}&project={project_id}" ``` ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: [email protected]
