Skip to main content

Interface: WorkflowTaskResult

The output of one workflow task (C-ABI).

Properties​

commands​

commands: WorkflowCommand[]


failure?​

optional failure?: object

cause​

cause: "NON_DETERMINISM" | "TASK_TIMEOUT" | "ISOLATE_MEMORY" | "PROTOCOL_MISMATCH" | "BUNDLE_UNAVAILABLE" | "BUNDLE_INTEGRITY" | "WORKFLOW_CODE_ERROR" | "HISTORY_LIMIT" | "UNSUPPORTED_COMMAND" | "INVALID_REQUEST" | "INTERNAL"

errorType?​

optional errorType?: string

message​

message: string

seq?​

optional seq?: number

stackTrace?​

optional stackTrace?: string


localActivityRequests?​

optional localActivityRequests?: LocalActivityRequest[]


logs​

logs: TaskLogLine[]


outcome​

outcome: "commands" | "failed" | "localActivityRequested"


protocol​

protocol: number


queryResults?​

optional queryResults?: QueryResult[]


sinkCalls?​

optional sinkCalls?: SinkCall[]

Sink calls of the open activation, at most MAX_SINK_CALLS.


stackTrace?​

optional stackTrace?: string


unfinishedHandlers?​

optional unfinishedHandlers?: UnfinishedHandler[]

Handlers still running when this task's terminal command was issued, with policy WARN_AND_ABANDON (R2). Never set on replay.