pull/361/head
xiaojunnuo 2025-03-11 01:30:36 +08:00
parent 1d108d775c
commit 8d9b44528b
2 changed files with 2 additions and 12 deletions

View File

@ -1,4 +1,4 @@
import { ResultError } from "../dt/index.js";
import type { ResultError } from "../dt/index.js";
export class CancelError extends Error {
constructor(message: string) {

View File

@ -1,4 +1,4 @@
import { ConcurrencyStrategy, NotificationWhen, Pipeline, ResultType, Runnable, RunStrategy, Stage, Step, Task } from "../dt/index.js";
import { ConcurrencyStrategy, NotificationWhen, Pipeline, ResultType, Runnable, RunStrategy, Stage, Step, Task, ResultError } from "../dt/index.js";
import { RunHistory, RunnableCollection } from "./run-history.js";
import { AbstractTaskPlugin, PluginDefine, pluginRegistry, TaskInstanceContext, UserInfo } from "../plugin/index.js";
import { ContextFactory, IContext } from "./context.js";
@ -19,16 +19,6 @@ export type SysInfo = {
title?: string;
};
export type ResultError = {
e: any;
returnType: ResultType;
runnable: Runnable;
};
export type ResultErrors = {
resultType: ResultType;
errors: ResultError[];
};
export type ExecutorOptions = {
pipeline: Pipeline;
storage: IStorage;