Skip to content

remora-monorepo


remora-monorepo / viewer / WorkflowExecutionControls

Interface: WorkflowExecutionControls

Defined in: packages/ui/src/hooks/use-workflow-execution.ts:23

Properties

executionState

executionState: { completedAt?: string; durationMs?: number; error?: { category: string; code: string; isRetryable?: boolean; message: string; statusCode?: number; stepId?: string; }; output?: unknown; runId: string; startedAt: string; status: "pending" | "running" | "completed" | "failed"; stepRecords: object[]; workflowHash?: string; } | null

Defined in: packages/ui/src/hooks/use-workflow-execution.ts:25

The currently displayed execution state (respects replay position).


goLive()

goLive: () => void

Defined in: packages/ui/src/hooks/use-workflow-execution.ts:47

Jump to the latest state (exit replay mode).

Returns

void


isPaused

isPaused: boolean

Defined in: packages/ui/src/hooks/use-workflow-execution.ts:31

Whether execution is paused with a resumable state.


isRunning

isRunning: boolean

Defined in: packages/ui/src/hooks/use-workflow-execution.ts:29

Whether a workflow is currently executing.


pause()

pause: () => void

Defined in: packages/ui/src/hooks/use-workflow-execution.ts:36

Pause the current execution (can be resumed later).

Returns

void


replayIndex

replayIndex: number | null

Defined in: packages/ui/src/hooks/use-workflow-execution.ts:43

Current replay slider position, or null if viewing live.


reset()

reset: () => void

Defined in: packages/ui/src/hooks/use-workflow-execution.ts:40

Reset all execution state.

Returns

void


resume()

resume: () => void

Defined in: packages/ui/src/hooks/use-workflow-execution.ts:38

Resume a paused execution.

Returns

void


run()

run: (inputs?) => void

Defined in: packages/ui/src/hooks/use-workflow-execution.ts:34

Start a new execution.

Parameters

inputs?

Record<string, unknown>

Returns

void


seekTo()

seekTo: (index) => void

Defined in: packages/ui/src/hooks/use-workflow-execution.ts:45

Seek to a specific state in the history.

Parameters

index

number

Returns

void


stateHistory

stateHistory: object[]

Defined in: packages/ui/src/hooks/use-workflow-execution.ts:27

Full history of all received state snapshots.

completedAt?

optional completedAt: string

durationMs?

optional durationMs: number

error?

optional error: object

error.category

category: string

error.code

code: string

error.isRetryable?

optional isRetryable: boolean

error.message

message: string

error.statusCode?

optional statusCode: number

error.stepId?

optional stepId: string

output?

optional output: unknown

runId

runId: string

startedAt

startedAt: string

status

status: "pending" | "running" | "completed" | "failed"

stepRecords

stepRecords: object[]

workflowHash?

optional workflowHash: string