You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2022/06/23 23:01:33 UTC

[GitHub] [airflow] mik-laj commented on a diff in pull request #24599: updated documentation for databricks operator

mik-laj commented on code in PR #24599:
URL: https://github.com/apache/airflow/pull/24599#discussion_r905572770


##########
airflow/providers/databricks/operators/databricks.py:
##########
@@ -206,6 +206,39 @@ class DatabricksSubmitRunOperator(BaseOperator):
         For more information on how to use this operator, take a look at the guide:
         :ref:`howto/operator:DatabricksSubmitRunOperator`
 
+    The last way is to use the param tasks to pass array of objects to instantiate this operator
+        tasks =[
+            {
+                    "new_cluster": {
+                            "spark_version": "2.1.0-db3-scala2.11",
+                            "num_workers": 2
+                    },
+                    "notebook_task": {
+                            "notebook_path": "/Users/airflow@example.com/PrepareData"
+                    }
+            }
+        ]
+        notebook_run = DatabricksSubmitRunOperator(
+            task_id='notebook_run',
+            tasks = tasks)
+
+    :param tasks: Array of Objects(RunSubmitTaskSettings) <= 100 items.
+    The supported params in the array are

Review Comment:
   Can you add indentation here?



-- 
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-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org