We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c63962f commit f10eef4Copy full SHA for f10eef4
singlestoredb/management/manager.py
@@ -340,6 +340,12 @@ def _wait_on_endpoint(
340
Same object type as `out`
341
342
"""
343
+ # Only wait if workload type is set which means we are in the
344
+ # notebook environment. Outside of the environment, the endpoint
345
+ # may not be reachable directly.
346
+ if not os.environ.get('SINGLESTOREDB_WORKLOAD_TYPE', ''):
347
+ return out
348
+
349
if not hasattr(out, 'connect') or not out.connect:
350
raise ManagementError(
351
msg=f'{type(out).__name__} object does not have a valid endpoint',
0 commit comments