From 20324da0cce61f331078879d877364e6ead7c6ba Mon Sep 17 00:00:00 2001 From: Stas Bytsko Date: Tue, 4 Jul 2023 12:33:27 +0300 Subject: [PATCH] Update docs in databricks.py - we use 2.1 now --- airflow/providers/databricks/hooks/databricks.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/airflow/providers/databricks/hooks/databricks.py b/airflow/providers/databricks/hooks/databricks.py index e880a42eeefa6..64ac9b341d6e9 100644 --- a/airflow/providers/databricks/hooks/databricks.py +++ b/airflow/providers/databricks/hooks/databricks.py @@ -137,7 +137,7 @@ def __init__( def run_now(self, json: dict) -> int: """ - Utility function to call the ``api/2.0/jobs/run-now`` endpoint. + Utility function to call the ``api/2.1/jobs/run-now`` endpoint. :param json: The data used in the body of the request to the ``run-now`` endpoint. :return: the run_id as an int @@ -147,7 +147,7 @@ def run_now(self, json: dict) -> int: def submit_run(self, json: dict) -> int: """ - Utility function to call the ``api/2.0/jobs/runs/submit`` endpoint. + Utility function to call the ``api/2.1/jobs/runs/submit`` endpoint. :param json: The data used in the body of the request to the ``submit`` endpoint. :return: the run_id as an int