Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion providers/databricks/docs/operators/repos_create.rst
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ To use this operator you need to provide at least ``git_url`` parameter.
* - databricks_retry_limit: integer
- amount of times retry if the Databricks backend is unreachable.
* - databricks_retry_delay: decimal
- number of seconds to wait between retries.
- minimum wait in seconds between retryable attempts (exponential backoff by default).

Examples
--------
Expand Down
2 changes: 1 addition & 1 deletion providers/databricks/docs/operators/repos_delete.rst
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ To use this operator you need to provide either ``repo_path`` or ``repo_id``.
* - databricks_retry_limit: integer
- amount of times retry if the Databricks backend is unreachable.
* - databricks_retry_delay: decimal
- number of seconds to wait between retries.
- minimum wait in seconds between retryable attempts (exponential backoff by default).

Examples
--------
Expand Down
2 changes: 1 addition & 1 deletion providers/databricks/docs/operators/repos_update.rst
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ To use this operator you need to provide either ``branch`` or ``tag`` and either
* - databricks_retry_limit: integer
- amount of times retry if the Databricks backend is unreachable.
* - databricks_retry_delay: decimal
- number of seconds to wait between retries.
- minimum wait in seconds between retryable attempts (exponential backoff by default).

Examples
--------
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -274,8 +274,9 @@ class DatabricksHook(BaseDatabricksHook):
will wait before timing-out.
:param retry_limit: The number of times to retry the connection in case of
service outages.
:param retry_delay: The number of seconds to wait between retries (it
might be a floating point number).
:param retry_delay: Minimum wait in seconds between retryable attempts when using the
default retry strategy. The wait uses exponential backoff (doubling after each
failure, capped at ``2 ** retry_limit`` seconds). May be a floating point number.
:param retry_args: An optional dictionary with arguments passed to ``tenacity.Retrying`` class.
"""

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,9 @@ class BaseDatabricksHook(BaseHook):
will wait before timing-out.
:param retry_limit: The number of times to retry the connection in case of
service outages.
:param retry_delay: The number of seconds to wait between retries (it
might be a floating point number).
:param retry_delay: Minimum wait in seconds between retryable attempts when using the
default retry strategy. The wait uses exponential backoff (doubling after each
failure, capped at ``2 ** retry_limit`` seconds). May be a floating point number.
:param retry_args: An optional dictionary with arguments passed to ``tenacity.Retrying`` class.
:param caller: The name of the operator that is calling the hook.
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -340,8 +340,10 @@ class DatabricksCreateJobsOperator(BaseOperator):
this run. By default the operator will poll every 30 seconds.
:param databricks_retry_limit: Amount of times retry if the Databricks backend is
unreachable. Its value must be greater than or equal to 1.
:param databricks_retry_delay: Number of seconds to wait between retries (it
might be a floating point number).
:param databricks_retry_delay: Minimum wait in seconds between retryable attempts when
using the default retry strategy. The wait uses exponential backoff (doubling after
each failure, capped at ``2 ** databricks_retry_limit`` seconds). May be a floating
point number.
:param databricks_retry_args: An optional dictionary with arguments passed to ``tenacity.Retrying`` class.

.. note::
Expand Down Expand Up @@ -550,8 +552,10 @@ class DatabricksSubmitRunOperator(BaseOperator):
this run. By default the operator will poll every 30 seconds.
:param databricks_retry_limit: Amount of times retry if the Databricks backend is
unreachable. Its value must be greater than or equal to 1.
:param databricks_retry_delay: Number of seconds to wait between retries (it
might be a floating point number).
:param databricks_retry_delay: Minimum wait in seconds between retryable attempts when
using the default retry strategy. The wait uses exponential backoff (doubling after
each failure, capped at ``2 ** databricks_retry_limit`` seconds). May be a floating
point number.
:param databricks_retry_args: An optional dictionary with arguments passed to ``tenacity.Retrying`` class.
:param do_xcom_push: Whether we should push run_id and run_page_url to xcom.
:param git_source: Optional specification of a remote git repository from which
Expand Down Expand Up @@ -879,8 +883,10 @@ class DatabricksRunNowOperator(BaseOperator):
this run. By default, the operator will poll every 30 seconds.
:param databricks_retry_limit: Amount of times retry if the Databricks backend is
unreachable. Its value must be greater than or equal to 1.
:param databricks_retry_delay: Number of seconds to wait between retries (it
might be a floating point number).
:param databricks_retry_delay: Minimum wait in seconds between retryable attempts when
using the default retry strategy. The wait uses exponential backoff (doubling after
each failure, capped at ``2 ** databricks_retry_limit`` seconds). May be a floating
point number.
:param databricks_retry_args: An optional dictionary with arguments passed to ``tenacity.Retrying`` class.
:param do_xcom_push: Whether we should push run_id and run_page_url to xcom.
:param wait_for_termination: if we should wait for termination of the job run. ``True`` by default.
Expand Down Expand Up @@ -1078,8 +1084,10 @@ class DatabricksSQLStatementsOperator(DatabricksSQLStatementsMixin, BaseOperator
this statement. By default the operator will poll every 30 seconds.
:param databricks_retry_limit: Amount of times retry if the Databricks backend is
unreachable. Its value must be greater than or equal to 1.
:param databricks_retry_delay: Number of seconds to wait between retries (it
might be a floating point number).
:param databricks_retry_delay: Minimum wait in seconds between retryable attempts when
using the default retry strategy. The wait uses exponential backoff (doubling after
each failure, capped at ``2 ** databricks_retry_limit`` seconds). May be a floating
point number.
:param databricks_retry_args: An optional dictionary with arguments passed to ``tenacity.Retrying`` class.
:param do_xcom_push: Whether we should push statement_id to xcom.:
:param timeout: The timeout for the Airflow task executing the SQL statement. By default a value of 3600 seconds is used.
Expand Down Expand Up @@ -1236,7 +1244,8 @@ class DatabricksTaskBaseOperator(BaseOperator, ABC):
:param databricks_task_key: An optional task_key used to refer to the task by Databricks API. By
default this will be set to the hash of ``dag_id + task_id``.
:param databricks_retry_args: An optional dictionary with arguments passed to ``tenacity.Retrying`` class.
:param databricks_retry_delay: Number of seconds to wait between retries.
:param databricks_retry_delay: Minimum wait in seconds between retryable attempts when
using the default retry strategy (exponential backoff). May be a floating point number.
:param databricks_retry_limit: Amount of times to retry if the Databricks backend is unreachable.
:param deferrable: Whether to run the operator in the deferrable mode.
:param existing_cluster_id: ID for existing cluster on which to run this task.
Expand Down Expand Up @@ -1570,7 +1579,8 @@ class DatabricksNotebookOperator(DatabricksTaskBaseOperator):
https://docs.databricks.com/dev-tools/api/latest/jobs.html#operation/JobsCreate
:param databricks_conn_id: The name of the Airflow connection to use.
:param databricks_retry_args: An optional dictionary with arguments passed to ``tenacity.Retrying`` class.
:param databricks_retry_delay: Number of seconds to wait between retries.
:param databricks_retry_delay: Minimum wait in seconds between retryable attempts when
using the default retry strategy (exponential backoff). May be a floating point number.
:param databricks_retry_limit: Amount of times to retry if the Databricks backend is unreachable.
:param deferrable: Whether to run the operator in the deferrable mode.
:param existing_cluster_id: ID for existing cluster on which to run this task.
Expand Down Expand Up @@ -1717,7 +1727,8 @@ class DatabricksTaskOperator(DatabricksTaskBaseOperator):
:param task_config: The configuration of the task to be run on Databricks.
:param databricks_conn_id: The name of the Airflow connection to use.
:param databricks_retry_args: An optional dictionary with arguments passed to ``tenacity.Retrying`` class.
:param databricks_retry_delay: Number of seconds to wait between retries.
:param databricks_retry_delay: Minimum wait in seconds between retryable attempts when
using the default retry strategy (exponential backoff). May be a floating point number.
:param databricks_retry_limit: Amount of times to retry if the Databricks backend is unreachable.
:param deferrable: Whether to run the operator in the deferrable mode.
:param existing_cluster_id: ID for existing cluster on which to run this task.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,10 @@ class DatabricksReposCreateOperator(BaseOperator):
connection and create the key ``host`` and leave the ``host`` field empty. (templated)
:param databricks_retry_limit: Amount of times retry if the Databricks backend is
unreachable. Its value must be greater than or equal to 1.
:param databricks_retry_delay: Number of seconds to wait between retries (it
might be a floating point number).
:param databricks_retry_delay: Minimum wait in seconds between retryable attempts when
using the default retry strategy. The wait uses exponential backoff (doubling after
each failure, capped at ``2 ** databricks_retry_limit`` seconds). May be a floating
point number.
"""

# Used in airflow.models.BaseOperator
Expand Down Expand Up @@ -201,8 +203,10 @@ class DatabricksReposUpdateOperator(BaseOperator):
connection and create the key ``host`` and leave the ``host`` field empty. (templated)
:param databricks_retry_limit: Amount of times retry if the Databricks backend is
unreachable. Its value must be greater than or equal to 1.
:param databricks_retry_delay: Number of seconds to wait between retries (it
might be a floating point number).
:param databricks_retry_delay: Minimum wait in seconds between retryable attempts when
using the default retry strategy. The wait uses exponential backoff (doubling after
each failure, capped at ``2 ** databricks_retry_limit`` seconds). May be a floating
point number.
"""

# Used in airflow.models.BaseOperator
Expand Down Expand Up @@ -275,8 +279,10 @@ class DatabricksReposDeleteOperator(BaseOperator):
connection and create the key ``host`` and leave the ``host`` field empty. (templated)
:param databricks_retry_limit: Amount of times retry if the Databricks backend is
unreachable. Its value must be greater than or equal to 1.
:param databricks_retry_delay: Number of seconds to wait between retries (it
might be a floating point number).
:param databricks_retry_delay: Minimum wait in seconds between retryable attempts when
using the default retry strategy. The wait uses exponential backoff (doubling after
each failure, capped at ``2 ** databricks_retry_limit`` seconds). May be a floating
point number.
"""

# Used in airflow.models.BaseOperator
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ class DatabricksExecutionTrigger(BaseTrigger):
:param polling_period_seconds: Controls the rate of the poll for the result of this run.
By default, the trigger will poll every 30 seconds.
:param retry_limit: The number of times to retry the connection in case of service outages.
:param retry_delay: The number of seconds to wait between retries.
:param retry_delay: Minimum wait in seconds between retryable attempts when using the
Comment thread
sduvvuri26 marked this conversation as resolved.
default retry strategy. The wait uses exponential backoff (doubling after each
failure, capped at ``2 ** retry_limit`` seconds). May be a floating point number.
:param retry_args: An optional dictionary with arguments passed to ``tenacity.Retrying`` class.
:param run_page_url: The run page url.
:param repair_run: Repair the databricks run in case of failure.
Expand Down Expand Up @@ -138,7 +140,9 @@ class DatabricksSQLStatementExecutionTrigger(BaseTrigger):
:param polling_period_seconds: Controls the rate of the poll for the result of this run.
By default, the trigger will poll every 30 seconds.
:param retry_limit: The number of times to retry the connection in case of service outages.
:param retry_delay: The number of seconds to wait between retries.
:param retry_delay: Minimum wait in seconds between retryable attempts when using the
default retry strategy. The wait uses exponential backoff (doubling after each
failure, capped at ``2 ** retry_limit`` seconds). May be a floating point number.
:param retry_args: An optional dictionary with arguments passed to ``tenacity.Retrying`` class.
:param caller: The name of the operator that is calling the hook.
"""
Expand Down
Loading