mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-09-05 07:27:15 +08:00
refactor: reorganize startup persistence boundaries
This commit is contained in:
@@ -17,7 +17,7 @@ from app.application.messaging.chat import (
|
||||
AsyncUnitOfWork,
|
||||
)
|
||||
from app.application.messaging.message import MessageQueryService
|
||||
from app.startup.context import AgentChatRuntime, HostRuntime
|
||||
from app.startup.composition.context import AgentChatRuntime, HostRuntime
|
||||
|
||||
|
||||
def get_agent_chat_service(
|
||||
|
||||
@@ -21,7 +21,7 @@ from app.application.security.user import (
|
||||
UserService,
|
||||
)
|
||||
from app.schemas.token import TokenPayload as _SchemaTokenPayload
|
||||
from app.startup.context import HostRuntime
|
||||
from app.startup.composition.context import HostRuntime
|
||||
|
||||
|
||||
def get_user_service(
|
||||
|
||||
@@ -18,7 +18,7 @@ from app.chain.storage import StorageChain
|
||||
from app.runtime.events import eventmanager
|
||||
from app.schemas.types import EventType
|
||||
from app.schemas.workflow import FileItem as _SchemaFileItem
|
||||
from app.startup.context import HostRuntime
|
||||
from app.startup.composition.context import HostRuntime
|
||||
|
||||
|
||||
def get_mediaserver_query_service(
|
||||
|
||||
@@ -14,7 +14,7 @@ from app.domain import site as site_rules
|
||||
from app.foundation import url as url_tools
|
||||
from app.runtime.events import eventmanager
|
||||
from app.schemas.types import EventType
|
||||
from app.startup.context import HostRuntime
|
||||
from app.startup.composition.context import HostRuntime
|
||||
|
||||
|
||||
async def _publish_site_updated(payload: dict[str, Any]) -> None:
|
||||
|
||||
@@ -37,7 +37,7 @@ from app.application.subscription.search import SearchSubscriptionsCommand
|
||||
from app.runtime.events import eventmanager
|
||||
from app.runtime.log import logger
|
||||
from app.schemas.types import EventType
|
||||
from app.startup.context import HostRuntime
|
||||
from app.startup.composition.context import HostRuntime
|
||||
from app.api.context import get_background_task_registry, resolve_background_task_registry
|
||||
from app.runtime.tasks import TaskRegistry
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@ from app.application.workflow import (
|
||||
)
|
||||
from app.runtime.config import global_vars
|
||||
from app.workflow import WorkFlowManager
|
||||
from app.startup.context import HostRuntime
|
||||
from app.startup.composition.context import HostRuntime
|
||||
|
||||
|
||||
def get_workflow_mutation_command(
|
||||
|
||||
Reference in New Issue
Block a user