完成timescaledb获取在线模拟数据的方法

This commit is contained in:
JIANG
2025-12-09 17:11:20 +08:00
parent b6c1ff1878
commit 18fc564efc
7 changed files with 93 additions and 39 deletions

View File

@@ -14,7 +14,7 @@ if __name__ == "__main__":
host="0.0.0.0",
port=8000,
loop="asyncio", # 强制使用 asyncio 事件循环
# workers=4, # 如果需要多进程,可以取消注释
workers=2, # 如果需要多进程,可以取消注释
)
server = uvicorn.Server(config)