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/[email protected]/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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to