Add support for configuring FastAPI/AnyIO Thread Pool Size

This commit is contained in:
Juan Calderon-Perez
2025-04-18 09:22:23 -04:00
parent b8fb4e528d
commit 19b3d88737
4 changed files with 21 additions and 5 deletions

View File

@@ -1203,6 +1203,9 @@ ENABLE_USER_WEBHOOKS = PersistentConfig(
os.environ.get("ENABLE_USER_WEBHOOKS", "True").lower() == "true",
)
# FastAPI / AnyIO settings
THREAD_POOL_SIZE = int(os.getenv("THREAD_POOL_SIZE", "64"))
def validate_cors_origins(origins):
for origin in origins: