在准备环境前提交次全部更改。

This commit is contained in:
Neo
2026-02-19 08:35:13 +08:00
parent ded6dfb9d8
commit 4eac07da47
1387 changed files with 6107191 additions and 33002 deletions

View File

@@ -0,0 +1,27 @@
# -*- coding: utf-8 -*-
"""ETL 状态监控 Pydantic 模型
定义游标信息和最近执行记录的响应模型。
"""
from __future__ import annotations
from pydantic import BaseModel
class CursorInfo(BaseModel):
"""ETL 游标信息(单条任务的最后抓取状态)。"""
task_code: str
last_fetch_time: str | None = None
record_count: int | None = None
class RecentRun(BaseModel):
"""最近执行记录。"""
id: str
task_codes: list[str]
status: str
started_at: str
finished_at: str | None = None
duration_ms: int | None = None
exit_code: int | None = None