auto-sync: 2026-05-17 00:31:49
This commit is contained in:
+4
-1
@@ -1,9 +1,12 @@
|
||||
"""v2.6 主入口 - FastAPI + Daemon ticker 共享 asyncio event loop"""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
import asyncio
|
||||
import logging
|
||||
from contextlib import asynccontextmanager
|
||||
from pathlib import Path
|
||||
from typing import Optional
|
||||
|
||||
import yaml
|
||||
from fastapi import FastAPI
|
||||
@@ -33,7 +36,7 @@ config = load_config()
|
||||
# Daemon ticker(占位,F6 实现)
|
||||
# ---------------------------------------------------------------------------
|
||||
|
||||
_ticker_task: asyncio.Task | None = None
|
||||
_ticker_task: Optional[asyncio.Task] = None
|
||||
|
||||
|
||||
async def _run_ticker():
|
||||
|
||||
Reference in New Issue
Block a user