Skip to content

Commit f4a7471

Browse files
committed
Add options for the Long Running Operation.
1 parent 161c30a commit f4a7471

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

databricks/sdk/common/lro.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
from datetime import timedelta
2+
from typing import Optional
3+
4+
5+
class LroOptions:
6+
"""LroOptions is the options for the Long Running Operations.
7+
DO NOT USE THIS OPTION. This option is still under development
8+
and can be updated in the future without notice.
9+
"""
10+
11+
def __init__(self, *, timeout: Optional[timedelta] = None):
12+
"""
13+
Args:
14+
timeout: The timeout for the Long Running Operations.
15+
If not set, the default timeout is 20 minutes.
16+
"""
17+
self.timeout = timeout or timedelta(minutes=20)

0 commit comments

Comments
 (0)