Restack · Schema

Workflow Run

Represents the status and result of a Restack long-running workflow execution.

AI AgentsWorkflowsOrchestrationEnterprisePython

Properties

Name Type Description
runId string Unique identifier for the workflow run.
workflowName string The name of the workflow that was executed.
status string Current execution status of the workflow run.
input object Input parameters provided when scheduling the workflow.
output object Output returned by the workflow upon completion.
error string Error message if the workflow run failed.
createdAt string ISO 8601 timestamp when the workflow run was created.
completedAt string ISO 8601 timestamp when the workflow run completed.
View JSON Schema on GitHub

JSON Schema

restack-workflow-run-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/restack/refs/heads/main/json-schema/restack-workflow-run-schema.json",
  "title": "Workflow Run",
  "description": "Represents the status and result of a Restack long-running workflow execution.",
  "type": "object",
  "properties": {
    "runId": {
      "type": "string",
      "description": "Unique identifier for the workflow run.",
      "pattern": "^run_[a-zA-Z0-9_]+$"
    },
    "workflowName": {
      "type": "string",
      "description": "The name of the workflow that was executed."
    },
    "status": {
      "type": "string",
      "description": "Current execution status of the workflow run.",
      "enum": ["queued", "running", "completed", "failed"]
    },
    "input": {
      "type": "object",
      "description": "Input parameters provided when scheduling the workflow.",
      "additionalProperties": true
    },
    "output": {
      "type": "object",
      "description": "Output returned by the workflow upon completion.",
      "additionalProperties": true
    },
    "error": {
      "type": "string",
      "description": "Error message if the workflow run failed."
    },
    "createdAt": {
      "type": "string",
      "format": "date-time",
      "description": "ISO 8601 timestamp when the workflow run was created."
    },
    "completedAt": {
      "type": "string",
      "format": "date-time",
      "description": "ISO 8601 timestamp when the workflow run completed."
    }
  },
  "required": ["runId", "workflowName", "status"]
}