feat: add async worker queues and retry controls

This commit is contained in:
wren
2026-04-29 11:48:09 +08:00
parent e738398eb6
commit f3b83c9979
16 changed files with 1316 additions and 96 deletions
@@ -9,7 +9,13 @@ class IAuditService(ABC):
"""评查服务接口。"""
@abstractmethod
async def Run(self, DocumentId: int, RuleType: str | None = None, Force: bool = False) -> AuditRunVO:
async def Run(
self,
DocumentId: int,
RuleType: str | None = None,
Force: bool = False,
Speed: str = "normal",
) -> AuditRunVO:
"""触发文档评查。"""
...