durable-execution
Version:
A durable execution engine for running tasks durably and resiliently
79 lines (78 loc) • 2.4 kB
text/typescript
export {
makeEffectDurableExecutor,
type EffectDurableExecutor,
EffectDurableExecutorOptionsSchema,
type EffectDurableExecutorOptions,
type AnySchema,
type InferSchemaInput,
type InferSchemaOutput,
} from './effect-executor'
export { DurableExecutor, type DurableExecutorOptions } from './executor'
export {
type Task,
type AnyTask,
type AnyTasks,
type InferTaskInput,
type InferTaskOutput,
type InferTaskType,
type CommonTaskOptions,
type TaskRetryOptions,
type TaskOptions,
type SleepingTaskOptions,
type ParentTaskOptions,
type FinalizeTaskOptions,
type DefaultParentTaskOutput,
type TaskRunContext,
type TaskExecution,
type FinishedTaskExecution,
type ReadyTaskExecution,
type RunningTaskExecution,
type FailedTaskExecution,
type TimedOutTaskExecution,
type CancelledTaskExecution,
type WaitingForChildrenTaskExecution,
type WaitingForFinalizeTaskExecution,
type FinalizeFailedTaskExecution,
type CompletedTaskExecution,
type ChildTask,
childTask,
type FinishedChildTaskExecution,
type CompletedChildTaskExecution,
type ErroredChildTaskExecution,
type TaskExecutionSummary,
type ParentTaskExecutionSummary,
type TaskExecutionStatus,
ALL_TASK_EXECUTION_STATUSES,
ACTIVE_TASK_EXECUTION_STATUSES,
FINISHED_TASK_EXECUTION_STATUSES,
ERRORED_TASK_EXECUTION_STATUSES,
type ErroredTaskExecutionStatus,
type TaskEnqueueOptions,
type WakeupSleepingTaskExecutionOptions,
type SequentialTasks,
type SequentialTasksHelper,
type LastTaskElementInArray,
} from './task'
export {
type TaskExecutionsStorage,
type TaskExecutionStorageValue,
type TaskExecutionOnChildrenFinishedProcessingStatus,
type TaskExecutionCloseStatus,
type TaskExecutionStorageGetByIdFilters,
type TaskExecutionStorageUpdate,
applyTaskExecutionStorageUpdate,
TaskExecutionsStorageWithMutex,
type TaskExecutionsStorageWithoutBatching,
TaskExecutionsStorageWithBatching,
} from './storage'
export { InMemoryTaskExecutionsStorage } from './in-memory-storage'
export {
type DurableExecutionErrorType,
DurableExecutionError,
DurableExecutionNotFoundError,
DurableExecutionTimedOutError,
DurableExecutionCancelledError,
type DurableExecutionErrorStorageValue,
} from './errors'
export { type Serializer, createSuperjsonSerializer } from './serializer'
export { type Mutex, createMutex } from '@gpahal/std/promises'