release: bump version to 0.80.1
This commit is contained in:
1 parent
41059ca42a
commit
4b2004b7d8
29 files changed
+1843
-220
No files matched your search
@@ -464,6 +464,12 @@ POST /api/v1/datasources/trigger-batch
|
||||
|
||||
The request body may pass `source_ids` for selected rows. Without `source_ids`, the backend filters by `product`, `module`, `is_active`, `run_status`, `collected`, `credential_status`, and `q`. The endpoint skips disabled sources, sources already running without `force`, and sources still inside their frequency window, then returns `triggered`, `skipped`, and `failed` groups.
|
||||
|
||||
### Scheduling switch
|
||||
|
||||
`POST /api/v1/datasources/{id}/enable` and `/disable` change only whether the scheduler runs a source; they never start a collection. `POST /api/v1/datasources/batch-status` takes `{source_ids, is_active}` and returns `updated` rows, `unchanged` and `not_found` IDs, `sync_failed` scheduler IDs, and global `counts`. All three require admin or super_admin. Only rows whose state actually changes are committed and resynchronized with the scheduler; running tasks continue after a disable. The list endpoint also returns `counts: {all, active, inactive}`, unaffected by filters.
|
||||
|
||||
Admin applies these responses to the affected rows without reloading the list. Rows that stop matching the current filter stay dimmed until the next reload. Collection Management uses the same switch in the scheduling panel heading, while draft saves only change frequency, priority, and storage policy.
|
||||
|
||||
**Core file**: `backend/app/api/v1/datasources.py`
|
||||
|
||||
## Compute source contracts and topic APIs
|
||||
|
||||
@@ -494,6 +494,12 @@ POST /api/v1/datasources/trigger-batch
|
||||
|
||||
请求体可以传 `source_ids` 精确触发选中项;如果不传 `source_ids`,后端按 `product`、`module`、`is_active`、`run_status`、`collected`、`credential_status` 和 `q` 过滤后触发。接口会跳过禁用源、正在运行且未 `force` 的源,以及未到频率窗口的源,并返回 `triggered`、`skipped`、`failed` 三组结果。
|
||||
|
||||
### 调度开关
|
||||
|
||||
`POST /api/v1/datasources/{id}/enable` 与 `/disable` 只改变数据源是否参与定时调度,不会立即发起采集。`POST /api/v1/datasources/batch-status` 接收 `{source_ids, is_active}`,返回 `updated`(最新行数据)、`unchanged`、`not_found`、`sync_failed`(调度同步失败的 ID)以及全局 `counts`。三个接口都需要 admin 或 super_admin。只有状态确实变化的数据源会提交并重新同步调度器;停用不会中断运行中的任务。列表接口同时返回不受筛选影响的 `counts: {all, active, inactive}`。
|
||||
|
||||
控制台用这些响应原地更新受影响的行,不重新加载列表;不再符合当前筛选的行变暗保留,下次刷新时移出。采集管理的“采集调度”在面板标题处使用同一开关,草稿保存只修改频率、优先级和存储策略。
|
||||
|
||||
**核心文件**: `backend/app/api/v1/datasources.py`
|
||||
|
||||
## 算力来源合同与专题接口
|
||||
|
||||
Reference in new issue
Block a user