9 lines
392 B
TypeScript
9 lines
392 B
TypeScript
import { request } from '../../lib/http'
|
|
import type { WorkflowExecution } from './execution.types'
|
|
|
|
/** WorkflowExecution 查询接口;数据库状态是任务进度的权威来源。 */
|
|
export const workflowExecutionApi = {
|
|
get: (executionId: string, signal?: AbortSignal) =>
|
|
request<WorkflowExecution>(`/workflow-executions/${encodeURIComponent(executionId)}`, { signal })
|
|
}
|