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 2a9ba9a commit 58bb7e5Copy full SHA for 58bb7e5
singlestoredb/apps/_python_udfs.py
@@ -55,8 +55,9 @@ async def run_udf_app(
55
)
56
_running_server = AwaitableUvicornServer(config)
57
58
- # Register the functions
59
- app.register_functions(replace=replace_existing)
+ # Register the functions only if the app is running interactively.
+ if app_config.running_interactively:
60
+ app.register_functions(replace=replace_existing)
61
62
asyncio.create_task(_running_server.serve())
63
await _running_server.wait_for_startup()
0 commit comments