HariGS-DB commented on code in PR #45188: URL: https://github.com/apache/airflow/pull/45188#discussion_r1918552802
########## providers/src/airflow/providers/databricks/operators/databricks.py: ########## @@ -1087,7 +1100,9 @@ def _get_run_json(self) -> dict[str, Any]: elif self.existing_cluster_id: run_json["existing_cluster_id"] = self.existing_cluster_id else: - raise ValueError("Must specify either existing_cluster_id or new_cluster.") Review Comment: have made the changes, please check ########## providers/src/airflow/providers/databricks/operators/databricks.py: ########## @@ -1087,7 +1100,9 @@ def _get_run_json(self) -> dict[str, Any]: elif self.existing_cluster_id: run_json["existing_cluster_id"] = self.existing_cluster_id else: - raise ValueError("Must specify either existing_cluster_id or new_cluster.") + self.log.info("The task %s will be executed in serverless mode", run_json["run_name"]) + if self.databricks_environments: Review Comment: have made the changes, please check -- 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: commits-unsubscr...@airflow.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org