app-operations_manager Schemas

On this page:

job-common

{ "$schema": "http://json-schema.org/draft-07/schema", "$id": "job-common", "definitions": { "commonFieldNames": { "enum": [ "_id", "font_size", "type", "created", "created_by", "last_updated", "last_updated_by", "lastUpdatedVersion", "canvasVersion", "name", "description", "preAutomationTime", "sla", "errorHandler", "tasks", "transitions", "status", "variables", "ancestors", "error" ] }, "commonFields": { "type": "object", "additionalProperties": true, "properties": { "_id": { "$ref": "common-ops-schema#/definitions/ObjectIdLikeString" }, "font_size": { "type": "integer" }, "type": { "const": "automation" }, "created": { "$ref": "common-ops-schema#/definitions/ISODate" }, "created_by": { "$ref": "common-ops-schema#/definitions/ObjectId" }, "last_updated": { "$ref": "common-ops-schema#/definitions/ISODate" }, "last_updated_by": { "$ref": "common-ops-schema#/definitions/ObjectId" }, "lastUpdatedVersion": { "type": "string", "pattern": "^\\d+\\.\\d+\\.\\d+$" }, "canvasVersion": { "enum": [ 1, 2 ] }, "name": { "type": "string" }, "description": { "type": [ "string", "null" ] }, "preAutomationTime": { "type": "number" }, "sla": { "type": "number" }, "decorators": { "$ref": "common-ops-schema#/definitions/decorators" }, "transitions": { "type": "object", "properties": { "workflow_start": { "$ref": "#/definitions/transitionTargets" }, "workflow_end": { "$ref": "#/definitions/transitionTargets" }, "error_handler": { "$ref": "#/definitions/transitionTargets" } }, "patternProperties": { "^[0-9a-f]{1,4}$": { "$ref": "#/definitions/transitionTargets" } }, "additionalProperties": false }, "status": { "$ref": "#/definitions/jobStatus" }, "variables": { "type": "object" }, "error": { "type": "array", "items": { "$ref": "#/definitions/error" } }, "ancestors": { "type": "array", "items": { "$ref": "common-ops-schema#/definitions/ObjectIdLikeString" } } } }, "workflowStartTask": { "$ref": "workflowDocument#/properties/tasks/properties/workflow_start" }, "workflowEndTask": { "$ref": "workflowDocument#/properties/tasks/properties/workflow_end" }, "anyTask": { "$ref": "workflowDocument#/properties/tasks" }, "transitions": { "$ref": "workflowDocument#/properties/transitions" }, "errorHandler": { "$ref": "workflowDocument#/properties/errorHandler" }, "taskId": { "oneOf": [ { "enum": [ "workflow_start", "workflow_end", "error_handler" ] }, { "type": "string", "pattern": "^[0-9a-fA-F]{1-4}$", "examples": [ "e28f", "3a1f" ] } ] }, "taskLocation": { "enum": [ "Adapter", "Application", "Broker" ] }, "taskStatus": { "enum": [ "incomplete", "scheduled", "running", "complete", "canceled", "error", "failure" ] }, "jobStatus": { "enum": [ "error", "complete", "running", "canceled", "incomplete", "paused" ] }, "taskPreviousTransitions": { "type": "object", "properties": { "incomplete": { "type": "array", "items": { "$ref": "#/definitions/taskId" } }, "complete": { "type": "array", "items": { "$ref": "#/definitions/taskId" } }, "error": { "type": "array", "items": { "$ref": "#/definitions/taskId" } } } }, "taskOutgoingTransitionList": { "type": "object", "properties": { "task": { "$ref": "#/definitions/taskId" }, "type": { "$ref": "#/definitions/transitionType" } } }, "taskOutgoingTransitions": { "type": "object", "properties": { "success": { "$ref": "#/definitions/taskOutgoingTransitionList" }, "failure": { "$ref": "#/definitions/taskOutgoingTransitionList" }, "error": { "$ref": "#/definitions/taskOutgoingTransitionList" } } }, "transitionType": { "enum": [ "standard", "revert", "loop" ] }, "transitionState": { "enum": [ "success", "failure", "error" ] }, "transitionTargets": { "type": "object", "properties": { "workflow_start": { "$ref": "#/definitions/transition" }, "workflow_end": { "$ref": "#/definitions/transition" }, "error_handler": { "$ref": "#/definitions/transition" } }, "patternProperties": { "^[0-9a-f]{1,4}$": { "$ref": "#/definitions/transition" } }, "additionalProperties": false }, "transition": { "type": "object", "properties": { "state": { "$ref": "#/definitions/transitionState" }, "type": { "$ref": "#/definitions/transitionType" } } }, "metricsCommon": { "type": "object", "additionalProperties": true, "properties": { "start_time": { "type": "number" }, "progress": { "type": "number", "minimum": 0, "maximum": 1 }, "end_time": { "type": "number" } } }, "taskPosition": { "type": "object", "additionalProperties": true, "properties": { "x": { "type": "number", "description": "Stores the x coordinate used by canvasType = 1 workflows" }, "y": { "type": "number", "description": "Stores the y coordinate used by canvasType = 1 workflows" }, "gridCoordinate": { "type": "object", "description": "Stores the coordinates used by canvasType = 2 workflows", "properties": { "x": { "type": "number" }, "y": { "type": "number" } } } } }, "taskBaseCommon": { "allOf": [ { "$ref": "#/definitions/taskPosition" }, { "type": "object", "additionalProperties": true, "properties": { "name": { "type": "string" }, "location": { "$ref": "#/definitions/taskLocation" }, "locationType": { "type": [ "string", "null" ] }, "app": { "type": "string" }, "canvasName": { "type": "string" }, "displayName": { "type": "string" }, "summary": { "type": "string" }, "description": { "type": "string" }, "variables": { "type": "object", "additionalProperties": false, "properties": { "incoming": { "type": "object" }, "outgoing": { "type": "object" }, "error": { "type": "string", "pattern": "" }, "decorators": { "$ref": "common-ops-schema#/definitions/decorators" } } }, "deprecated": { "type": "boolean" }, "scheduled": { "type": "boolean" }, "matched": { "type": "array", "items": { "type": "object", "properties": { "key": { "type": "string" }, "highlightString": { "type": "string" } } } }, "status": { "$ref": "#/definitions/taskStatus" }, "previous": { "$ref": "#/definitions/taskPreviousTransitions" }, "taskId": { "$ref": "#/definitions/taskId" }, "transitions": { "$ref": "#/definitions/taskOutgoingTransitions" }, "serverId": { "type": "string" }, "start_time": { "$ref": "common-ops-schema#/definitions/ISODate" }, "end_time": { "type": "number" }, "finish_state": { "$ref": "#/definitions/transitionState" }, "retrySettings": { "type": "object", "properties": { "state": { "type": "array", "items": { "enum": [ "success", "error", "failure" ] } }, "autoRetry": { "type": "boolean" }, "limit": { "type": "integer", "minimum": 0 }, "delay": { "type": "integer", "minimum": 0 }, "count": { "type": "integer", "minimum": 0 } }, "additionalProperties": false } } } ] }, "pendingTaskCommon": { "allOf": [ { "$ref": "#/definitions/taskPosition" }, { "type": "object", "additionalProperties": true, "properties": { "name": { "const": "pending" }, "summary": { "type": "string" }, "description": { "type": "string" } } } ] }, "manualTaskCommon": { "allOf": [ { "$ref": "#/definitions/taskBaseCommon" }, { "type": "object", "additionalProperties": true, "properties": { "type": { "const": "manual" }, "view": { "type": "string" } } } ] }, "automaticTaskCommon": { "allOf": [ { "$ref": "#/definitions/taskBaseCommon" }, { "type": "object", "additionalProperties": true, "properties": { "type": { "const": "automatic" }, "actor": { "oneOf": [ { "const": "Pronghorn" }, { "$comment": "Job variable", "type": "string", "pattern": "^\\$var\\.job\\.[a-zA-Z_0-9]{1,}$" }, { "$comment": "Task reference", "type": "string", "pattern": "^\\$var\\.[0-9a-f]{1,4}\\.[a-zA-Z_0-9]{1,}$" } ] } } } ] }, "operationTaskCommon": { "allOf": [ { "$ref": "#/definitions/taskBaseCommon" }, { "type": "object", "additionalProperties": true, "properties": { "type": { "const": "operation" } } } ] }, "childJobTaskCommon": { "allOf": [ { "$ref": "#/definitions/taskBaseCommon" }, { "type": "object", "additionalProperties": true, "properties": { "loop": { "type": "object", "properties": { "atLeastOneComplete": { "type": "boolean" }, "finishedCount": { "type": "number" }, "isFinished": { "type": "object", "additionalProperties": false, "patternProperties": { "^[0-9a-f]{24}$": { "type": "boolean" } } }, "outgoing": { "type": "array", "items": { "type": [ "string", "null" ] } } } }, "childJobs": { "type": "object", "properties": { "_id": { "type": "string" }, "name": { "type": "string" }, "iteration": { "type": "number" } } } } } ] }, "anyTaskCommon": { "oneOf": [ { "$ref": "#/definitions/pendingTaskCommon" }, { "$ref": "#/definitions/manualTaskCommon" }, { "$ref": "#/definitions/automaticTaskCommon" }, { "$ref": "#/definitions/operationTaskCommon" }, { "$ref": "#/definitions/childJobTaskCommon" } ] }, "startEndTaskCommon": { "allOf": [ { "$ref": "#/definitions/taskPosition" }, { "type": "object", "additionalProperties": true, "properties": { "status": { "$ref": "#/definitions/taskStatus" }, "previous": { "$ref": "#/definitions/taskPreviousTransitions" }, "transitions": { "$ref": "#/definitions/taskOutgoingTransitions" } } } ] }, "startTaskCommon": { "allOf": [ { "$ref": "#/definitions/taskPosition" }, { "type": "object", "additionalProperties": true, "properties": { "name": { "const": "workflow_start" }, "summary": { "const": "workflow_start" }, "taskId": { "const": "workflow_start" }, "metrics": { "type": "object", "properties": { "start_time": { "type": "number" }, "finish_state": { "$ref": "#/definitions/transitionState" } } } } } ] }, "endTaskCommon": { "allOf": [ { "$ref": "#/definitions/taskPosition" }, { "type": "object", "additionalProperties": true, "properties": { "name": { "const": "workflow_end" }, "summary": { "const": "workflow_end" }, "taskId": { "const": "workflow_end" }, "endTasks": { "$ref": "#/definitions/taskPreviousTransitions" }, "metrics": { "type": "object", "properties": { "end_time": { "type": "number" }, "run_time": { "type": "number" } } } } } ] }, "errorHandlerTaskCommon": { "allOf": [ { "$ref": "#/definitions/operationTaskCommon" }, { "properties": { "name": { "const": "childJob" } } } ] }, "taskCommon": { "type": "object", "properties": { "workflow_start": { "$ref": "#/definitions/startTaskCommon" }, "workflow_end": { "$ref": "#/definitions/endTaskCommon" }, "error_handler": { "oneOf": [ { "type": "null" }, { "$ref": "#/definitions/errorHandlerTaskCommon" } ] } } }, "error": { "type": "object", "properties": { "task": { "oneOf": [ { "const": "job" }, { "$ref": "#/definitions/taskId" } ] }, "message": { "type": [ "object", "string" ] }, "timestamp": { "type": "number", "description": "The time at which this error occurred, designated by a unix timestamp" } }, "examples": [ { "task": "f9a9", "message": { "code": 500, "message": { "apiVersion": "1", "method": "transformations.run", "error": { "code": 500, "message": "Missing one of the following required instances: arg2, arg1", "errors": [ {} ] } } }, "timestamp": 1627323002561 }, { "task": "job", "message": "Job has no available transitions. c841 could have led to the workflow end task, but did not. These tasks performed in a way that the end of the workflow could not be reached.", "timestamp": 1627323002574 } ] } } }