Skip to content

Commit 58bb7e5

Browse files
register on interactive
1 parent 2a9ba9a commit 58bb7e5

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

singlestoredb/apps/_python_udfs.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,9 @@ async def run_udf_app(
5555
)
5656
_running_server = AwaitableUvicornServer(config)
5757

58-
# Register the functions
59-
app.register_functions(replace=replace_existing)
58+
# Register the functions only if the app is running interactively.
59+
if app_config.running_interactively:
60+
app.register_functions(replace=replace_existing)
6061

6162
asyncio.create_task(_running_server.serve())
6263
await _running_server.wait_for_startup()

0 commit comments

Comments
 (0)