MCPcopy Create free account
hub / github.com/Noumena-Network/code / skipWorkflowAgent

Function skipWorkflowAgent

src/tasks/LocalWorkflowTask/LocalWorkflowTask.tsx:482–494  ·  view source on GitHub ↗
(
  taskId: string,
  agentId: string,
  setAppState: SetAppState,
)

Source from the content-addressed store, hash-verified

480}
481
482export async function skipWorkflowAgent(
483 taskId: string,
484 agentId: string,
485 setAppState: SetAppState,
486): Promise<void> {
487 let controller: AbortController | undefined
488 updateWorkflowTask(taskId, setAppState, task => {
489 controller = task.agentControllers?.[agentId]
490 return task
491 })
492 controller?.abort()
493 stopWorkflowAgent(taskId, agentId, setAppState, 'Skipped')
494}
495
496export async function retryWorkflowAgent(
497 _taskId: string,

Callers 1

BackgroundTasksDialogFunction · 0.85

Calls 2

updateWorkflowTaskFunction · 0.85
stopWorkflowAgentFunction · 0.85

Tested by

no test coverage detected