From 2bc4d13fa3726843789a24261b59eaeb7c6a0e44 Mon Sep 17 00:00:00 2001 From: p13rr0m <16443611+p13rr0m@users.noreply.github.com> Date: Thu, 3 Oct 2024 20:03:04 +0200 Subject: [PATCH] Update docs for CloudRunExecuteJobOperator The parameter job does not exists for the job execution operator. Additionally fixed some minor spelling mistakes. --- airflow/providers/google/cloud/operators/cloud_run.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/airflow/providers/google/cloud/operators/cloud_run.py b/airflow/providers/google/cloud/operators/cloud_run.py index a461f84827694..b768cc2c7567f 100644 --- a/airflow/providers/google/cloud/operators/cloud_run.py +++ b/airflow/providers/google/cloud/operators/cloud_run.py @@ -243,18 +243,16 @@ def execute(self, context: Context): class CloudRunExecuteJobOperator(GoogleCloudBaseOperator): """ - Executes a job and wait for the operation to be completed. Pushes the executed job to xcom. + Executes a job and waits for the operation to be completed. Pushes the executed job to xcom. :param project_id: Required. The ID of the Google Cloud project that the service belongs to. :param region: Required. The ID of the Google Cloud region that the service belongs to. :param job_name: Required. The name of the job to update. - :param job: Required. The job descriptor containing the new configuration of the job to update. - The name field will be replaced by job_name :param overrides: Optional map of override values. :param gcp_conn_id: The connection ID used to connect to Google Cloud. :param polling_period_seconds: Optional: Control the rate of the poll for the result of deferrable run. By default, the trigger will poll every 10 seconds. - :param timeout: The timeout for this request. + :param timeout_seconds: The timeout for this request. :param impersonation_chain: Optional service account to impersonate using short-term credentials, or chained list of accounts required to get the access_token of the last account in the list, which will be impersonated in the request. @@ -263,7 +261,7 @@ class CloudRunExecuteJobOperator(GoogleCloudBaseOperator): If set as a sequence, the identities from the list must grant Service Account Token Creator IAM role to the directly preceding identity, with first account from the list granting this role to the originating account (templated). - :param deferrable: Run operator in the deferrable mode + :param deferrable: Run the operator in deferrable mode. """ template_fields = ("project_id", "region", "gcp_conn_id", "impersonation_chain", "job_name", "overrides")