fix: 接口在返回前提交数据库修改,避免紧接着的请求读到旧设置
切换登录方式后立即用平台用户换取令牌,原先会因提交晚于响应而仍按旧方式放行。 同时去掉排队进程启动时重复建立排队表的步骤,安装和迁移已经负责建表。
This commit is contained in:
@@ -128,15 +128,6 @@ class DynamicWorker(Worker):
|
||||
|
||||
|
||||
def serve() -> None:
|
||||
import logging
|
||||
|
||||
logger = logging.getLogger("decom")
|
||||
with queue.open():
|
||||
try:
|
||||
queue.schema_manager.apply_schema()
|
||||
except Exception as exc:
|
||||
logger.info("队列结构已存在: %s", exc)
|
||||
|
||||
async def run() -> None:
|
||||
gate = DynamicGate(current_concurrency())
|
||||
async with queue.open_async():
|
||||
|
||||
Reference in New Issue
Block a user