mirror of
https://github.com/openclaw/openclaw.git
synced 2026-07-17 07:01:35 +00:00
* fix(tasks): fail closed on task-flow restore errors * fix(tasks): keep maintenance checks behind owner seam * fix(tasks): gate runtime startup on flow restore * test(tasks): prove runtime restore gate failures * fix(tasks): gate cancellation on flow readiness
55 lines
1.6 KiB
TypeScript
55 lines
1.6 KiB
TypeScript
// Internal task registry facade used by runtime modules without exposing public SDK surface.
|
|
import {
|
|
ensureTaskFlowRegistryReady,
|
|
reloadTaskFlowRegistryFromStore,
|
|
} from "./task-flow-runtime-internal.js";
|
|
import {
|
|
ensureTaskRegistryReady as ensureTaskRegistryReadyInternal,
|
|
reloadTaskRegistryFromStore as reloadTaskRegistryFromStoreInternal,
|
|
} from "./task-registry.js";
|
|
|
|
export function ensureTaskRuntimeStateReady(): void {
|
|
ensureTaskFlowRegistryReady();
|
|
ensureTaskRegistryReadyInternal();
|
|
}
|
|
|
|
export function reloadTaskRuntimeStateFromStore(): void {
|
|
reloadTaskFlowRegistryFromStore();
|
|
reloadTaskRegistryFromStoreInternal();
|
|
}
|
|
|
|
export {
|
|
assertTaskCancellationReadyById,
|
|
cancelTaskById,
|
|
createTaskRecord,
|
|
deleteTaskRecordById,
|
|
ensureTaskRegistryReady,
|
|
resetTaskRegistryControlRuntimeForTests,
|
|
findLatestTaskForFlowId,
|
|
finalizeTaskRunByRunId,
|
|
getTaskById,
|
|
hasActiveTaskForChildSessionKey,
|
|
listFreshTasksForOwnerKey,
|
|
listTaskRecords,
|
|
listTaskRecordsUnsorted,
|
|
listTasksForFlowId,
|
|
listTasksForOwnerKey,
|
|
linkTaskToFlowById,
|
|
markTaskLostById,
|
|
markTaskRunningByRunId,
|
|
markTaskTerminalById,
|
|
maybeDeliverTaskTerminalUpdate,
|
|
recordTaskProgressByRunId,
|
|
reloadTaskRegistryFromStore,
|
|
resetTaskRegistryDeliveryRuntimeForTests,
|
|
resolveTaskForLookupToken,
|
|
resetTaskRegistryForTests,
|
|
isParentFlowLinkError,
|
|
setTaskRegistryControlRuntimeForTests,
|
|
setTaskRegistryDeliveryRuntimeForTests,
|
|
setTaskCleanupAfterById,
|
|
setTaskRunDeliveryStatusByRunId,
|
|
updateTaskNotifyPolicyById,
|
|
} from "./task-registry.js";
|
|
export type { TaskRecord } from "./task-registry.types.js";
|