refactor: 拆分工作流执行查询与差异计算
This commit is contained in:
1 parent
c989e544e4
commit
22bd7a9995
10 files changed
+348
-338
No files matched your search
@@ -3,5 +3,6 @@
|
||||
- [tree.ts](./tree.ts):执行树展开、失败识别和节点查找,也提供工作流任务树展开。
|
||||
- [context.ts](./context.ts):构建执行实例索引,供条件解释与 Job 差异比较复用。
|
||||
- [debug.ts](./debug.ts):调试输入、发起 Job、轮询和诊断汇总。
|
||||
- [queries.ts](./queries.ts):Job、执行树与日志读取服务出口。
|
||||
|
||||
执行监听位于同级 [watch](../watch/README.watch.md),条件解释位于 `branch/`;HTTP 传输位于上级 `api.ts`。
|
||||
@@ -0,0 +1,37 @@
|
||||
import * as api from "../api.js";
|
||||
|
||||
export function listWorkflowLogs(...args: Parameters<typeof api.listWorkflowLogs>) {
|
||||
return api.listWorkflowLogs(...args);
|
||||
}
|
||||
|
||||
|
||||
export function listRunningJobs(...args: Parameters<typeof api.listRunningJobs>) {
|
||||
return api.listRunningJobs(...args);
|
||||
}
|
||||
|
||||
|
||||
export function getJob(...args: Parameters<typeof api.getJob>) {
|
||||
return api.getJob(...args);
|
||||
}
|
||||
|
||||
|
||||
export function getJobExecutionTree(...args: Parameters<typeof api.getJobExecutionTree>) {
|
||||
return api.getJobExecutionTree(...args);
|
||||
}
|
||||
|
||||
|
||||
export function getJobFailedExecutions(...args: Parameters<typeof api.getJobFailedExecutions>) {
|
||||
return api.getJobFailedExecutions(...args);
|
||||
}
|
||||
|
||||
|
||||
export function getJobExecutionLevel(...args: Parameters<typeof api.getJobExecutionLevel>) {
|
||||
return api.getJobExecutionLevel(...args);
|
||||
}
|
||||
|
||||
|
||||
export function getExecutionLogs(...args: Parameters<typeof api.getExecutionLogs>) {
|
||||
return api.getExecutionLogs(...args);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user