We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 83a6683 commit d40c724Copy full SHA for d40c724
singlestoredb/apps/_python_udfs.py
@@ -16,6 +16,7 @@
16
# Maximum number of UDFs allowed
17
MAX_UDFS_LIMIT = 10
18
19
+
20
async def run_udf_app(
21
log_level: str = 'error',
22
kill_existing_app_server: bool = True,
@@ -51,7 +52,9 @@ async def run_udf_app(
51
52
if not app.endpoints:
53
raise ValueError("You must define at least one function.")
54
if len(app.endpoints) > MAX_UDFS_LIMIT:
- raise ValueError(f"You can only define a maximum of {MAX_UDFS_LIMIT} functions.")
55
+ raise ValueError(
56
+ f"You can only define a maximum of {MAX_UDFS_LIMIT} functions."
57
+ )
58
59
config = uvicorn.Config(
60
app,
0 commit comments