ForcePilot/backend/package/yuxi/scheduler/__init__.py

19 lines
874 B
Python
Raw Normal View History

"""定时任务调度限界上下文。
本包采用轻量六边形架构Ports & Adapters
- ``core/``数据类 + 端口定义 + 校验函数不依赖任何外部
- ``use_cases/``用例编排 + DTO + Mapper + Context 构建依赖 ``core/``
- ``framework/``调度引擎handler 注册表执行器等框架实现依赖 ``core/`` 端口
- ``adapters/``实现端口persistence / messaging 依赖 ``core/`` 端口
- ``infrastructure/``配置容器装配等基础设施
异常层次定义在包根目录 ``scheduler/exceptions.py`` ``core/``
因为异常被所有层共享core / use_cases / framework / adapters
scheduler 不需要 adapter discovery故本包不提供注册函数
适配器装配由 ``infrastructure/container.py`` 显式完成
"""
from __future__ import annotations