Skip to content

Commit

Permalink
Added databricks_conn_id as templated field (#24945)
Browse files Browse the repository at this point in the history
  • Loading branch information
skadyan authored Jul 11, 2022
1 parent 7fc5e0b commit 8dfe7bf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions airflow/providers/databricks/operators/databricks.py
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ class DatabricksSubmitRunOperator(BaseOperator):
:param databricks_conn_id: Reference to the :ref:`Databricks connection <howto/connection:databricks>`.
By default and in the common case this will be ``databricks_default``. To use
token based authentication, provide the key ``token`` in the extra field for the
connection and create the key ``host`` and leave the ``host`` field empty.
connection and create the key ``host`` and leave the ``host`` field empty. (templated)
:param polling_period_seconds: Controls the rate which we poll for the result of
this run. By default the operator will poll every 30 seconds.
:param databricks_retry_limit: Amount of times retry if the Databricks backend is
Expand All @@ -304,7 +304,7 @@ class DatabricksSubmitRunOperator(BaseOperator):
"""

# Used in airflow.models.BaseOperator
template_fields: Sequence[str] = ('json',)
template_fields: Sequence[str] = ('json', 'databricks_conn_id')
template_ext: Sequence[str] = ('.json-tpl',)
# Databricks brand color (blue) under white text
ui_color = '#1CB1C2'
Expand Down Expand Up @@ -560,7 +560,7 @@ class DatabricksRunNowOperator(BaseOperator):
:param databricks_conn_id: Reference to the :ref:`Databricks connection <howto/connection:databricks>`.
By default and in the common case this will be ``databricks_default``. To use
token based authentication, provide the key ``token`` in the extra field for the
connection and create the key ``host`` and leave the ``host`` field empty.
connection and create the key ``host`` and leave the ``host`` field empty. (templated)
:param polling_period_seconds: Controls the rate which we poll for the result of
this run. By default the operator will poll every 30 seconds.
:param databricks_retry_limit: Amount of times retry if the Databricks backend is
Expand All @@ -573,7 +573,7 @@ class DatabricksRunNowOperator(BaseOperator):
"""

# Used in airflow.models.BaseOperator
template_fields: Sequence[str] = ('json',)
template_fields: Sequence[str] = ('json', 'databricks_conn_id')
template_ext: Sequence[str] = ('.json-tpl',)
# Databricks brand color (blue) under white text
ui_color = '#1CB1C2'
Expand Down

0 comments on commit 8dfe7bf

Please sign in to comment.