From f4a7471b0a79a2065d72d4e48ad66326eb6170a1 Mon Sep 17 00:00:00 2001 From: Parth Bansal Date: Sat, 11 Oct 2025 21:32:28 +0000 Subject: [PATCH] Add options for the Long Running Operation. --- databricks/sdk/common/lro.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 databricks/sdk/common/lro.py diff --git a/databricks/sdk/common/lro.py b/databricks/sdk/common/lro.py new file mode 100644 index 000000000..13c9f228d --- /dev/null +++ b/databricks/sdk/common/lro.py @@ -0,0 +1,17 @@ +from datetime import timedelta +from typing import Optional + + +class LroOptions: + """LroOptions is the options for the Long Running Operations. + DO NOT USE THIS OPTION. This option is still under development + and can be updated in the future without notice. + """ + + def __init__(self, *, timeout: Optional[timedelta] = None): + """ + Args: + timeout: The timeout for the Long Running Operations. + If not set, the default timeout is 20 minutes. + """ + self.timeout = timeout or timedelta(minutes=20)