workflowHistory
Since pyck v0.27.0
Fetch workflow history for executions matching filter criteria. Use workflowID and runID filters for a specific execution, or other filters for batch retrieval across related workflows. Returns all history events (no pagination).
Served by: workflow
Arguments
Section titled “Arguments”| Name | Type | Default | Description |
|---|---|---|---|
where |
WorkflowExecutionsWhereInput! | Filter criteria for workflow executions. | |
limit |
Int | Maximum number of executions to fetch history for. Defaults to 10, max 100. |
Returns
Section titled “Returns”WorkflowExecutionHistoryConnection!
Example
Section titled “Example”Retrieves the event history for a specific workflow execution.
query GetWorkflowHistory($where: WorkflowExecutionsWhereInput!, $limit: Int) { workflowHistory(where: $where, limit: $limit) { totalCount pageInfo { hasNextPage hasPreviousPage startCursor endCursor } edges { cursor node { execution { id workflowId } history { eventId eventTime eventType extra } typeName } } }}Variables
{ "limit": 50, "where": { "runID": "<run ID>", "workflowID": "<workflow execution ID>" }}