Skip to content

Commit 8ffb1a0

Browse files
committed
Allow changing app mode using run_udf_app args
1 parent 202a5bf commit 8ffb1a0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

singlestoredb/apps/_python_udfs.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818

1919

2020
async def run_udf_app(
21+
app_mode: str = 'managed',
2122
log_level: str = 'error',
2223
kill_existing_app_server: bool = True,
2324
) -> UdfConnectionInfo:
@@ -47,7 +48,7 @@ async def run_udf_app(
4748
udf_suffix = ''
4849
if app_config.running_interactively:
4950
udf_suffix = '_test'
50-
app = Application(url=base_url, app_mode='managed', name_suffix=udf_suffix)
51+
app = Application(url=base_url, app_mode=app_mode, name_suffix=udf_suffix)
5152

5253
if not app.endpoints:
5354
raise ValueError('You must define at least one function.')

0 commit comments

Comments
 (0)