refactor(backend): 后端重构初步设想

This commit is contained in:
sophie committed 2026-06-17 11:24:54 +08:00
1 parent b69d549b2c
commit 21b8c24815
96 files changed
+1592

No files matched your search

+11
View File
@@ -0,0 +1,11 @@
"""
backend/app/jobs/__init__.py
用途:统一后台任务层入口(方案 D)。
依赖:types、registry、queue、runner。
逻辑:Web API enqueue;worker.py 调用 runner.run_forever。
"""
from app.jobs.types import JobStatus, JobType
from app.jobs.queue import enqueue
__all__ = ['JobType', 'JobStatus', 'enqueue']