Windmill · Schema

CompletedJob

Windmill CompletedJob schema

AutomationInternal ToolsOpen SourceProCode API CompositionScriptsWebhooksWorkflow EngineWorkflows

Properties

Name Type Description
workspace_id string
id string
parent_job string
created_by string
created_at string
started_at string
completed_at string
duration_ms integer
success boolean
script_path string
script_hash string
args object
result object
logs string
deleted boolean
raw_code string
canceled boolean
canceled_by string
canceled_reason string
job_kind string
schedule_path string
permissioned_as string The user (u/userfoo) or group (g/groupfoo) whom the execution of this script will be permissioned_as and by extension its DT_TOKEN.
flow_status object
workflow_as_code_status object
raw_flow object
is_flow_step boolean
language object
is_skipped boolean
email string
visible_to_owner boolean
mem_peak integer
tag string
priority integer
labels array
self_wait_time_ms number
aggregate_wait_time_ms number
preprocessed boolean
worker string
View JSON Schema on GitHub

JSON Schema

windmill-completedjob-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/windmill/refs/heads/main/json-schema/windmill-completedjob-schema.json",
  "title": "CompletedJob",
  "description": "Windmill CompletedJob schema",
  "type": "object",
  "properties": {
    "workspace_id": {
      "type": "string"
    },
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "parent_job": {
      "type": "string",
      "format": "uuid"
    },
    "created_by": {
      "type": "string"
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "started_at": {
      "type": "string",
      "format": "date-time"
    },
    "completed_at": {
      "type": "string",
      "format": "date-time"
    },
    "duration_ms": {
      "type": "integer"
    },
    "success": {
      "type": "boolean"
    },
    "script_path": {
      "type": "string"
    },
    "script_hash": {
      "type": "string"
    },
    "args": {
      "$ref": "#/components/schemas/ScriptArgs"
    },
    "result": {},
    "logs": {
      "type": "string"
    },
    "deleted": {
      "type": "boolean"
    },
    "raw_code": {
      "type": "string"
    },
    "canceled": {
      "type": "boolean"
    },
    "canceled_by": {
      "type": "string"
    },
    "canceled_reason": {
      "type": "string"
    },
    "job_kind": {
      "type": "string",
      "enum": [
        "script",
        "preview",
        "dependencies",
        "flow",
        "flowdependencies",
        "appdependencies",
        "flowpreview",
        "script_hub",
        "identity",
        "deploymentcallback",
        "singlestepflow",
        "flowscript",
        "flownode",
        "appscript",
        "aiagent",
        "unassigned_script",
        "unassigned_flow",
        "unassigned_singlestepflow"
      ]
    },
    "schedule_path": {
      "type": "string"
    },
    "permissioned_as": {
      "type": "string",
      "description": "The user (u/userfoo) or group (g/groupfoo) whom\nthe execution of this script will be permissioned_as and by extension its DT_TOKEN.\n"
    },
    "flow_status": {
      "$ref": "../../openflow.openapi.yaml#/components/schemas/FlowStatus"
    },
    "workflow_as_code_status": {
      "$ref": "#/components/schemas/WorkflowStatus"
    },
    "raw_flow": {
      "$ref": "../../openflow.openapi.yaml#/components/schemas/FlowValue"
    },
    "is_flow_step": {
      "type": "boolean"
    },
    "language": {
      "$ref": "#/components/schemas/ScriptLang"
    },
    "is_skipped": {
      "type": "boolean"
    },
    "email": {
      "type": "string"
    },
    "visible_to_owner": {
      "type": "boolean"
    },
    "mem_peak": {
      "type": "integer"
    },
    "tag": {
      "type": "string"
    },
    "priority": {
      "type": "integer"
    },
    "labels": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "self_wait_time_ms": {
      "type": "number"
    },
    "aggregate_wait_time_ms": {
      "type": "number"
    },
    "preprocessed": {
      "type": "boolean"
    },
    "worker": {
      "type": "string"
    }
  },
  "required": [
    "id",
    "created_by",
    "duration_ms",
    "created_at",
    "started_at",
    "success",
    "canceled",
    "job_kind",
    "permissioned_as",
    "is_flow_step",
    "is_skipped",
    "email",
    "visible_to_owner",
    "tag"
  ]
}