Summary
Initiates a job from a workflow.
Description
Initiates a job from a workflow.
Route
POST /operations-manager/jobs/start
Roles
Parameters
Name | Type | Required | Description |
---|---|---|---|
workflow | string | yes | Name of the workflow from which to start the job. |
options | object | yes | Options for the job. |
{ "workflow": "laboris incididunt voluptate", "options": { "description": "Example job description", "type": "automation", "groups": [ "5cb7b531d06cceb89fd21b1c", "5cb7b531d06cceb89fd21b1c", "4321abcdef694aa79dae47ad", "5cb7b531d06cceb89fd21b1c" ] } }
{ "type": "object", "properties": { "workflow": { "type": "string", "title": "workflow" }, "options": { "type": "object", "description": "Options for the job.", "properties": { "description": { "type": "string", "description": "The description for the job to be started.", "examples": [ "Example job description" ] }, "type": { "type": "string", "examples": [ "automation" ] }, "variables": { "type": "object", "description": "Variables provided to the new job", "additionalProperties": true }, "groups": { "type": "array", "description": "Groups available for job.", "items": { "$ref": "common-ops-schema#/definitions/ObjectId" } } } } }, "required": [ "workflow", "options" ], "additionalProperties": false }
Return
Name | Type | Description |
---|---|---|
job | object | Resulting job document |
{ "_id": "4321abcdef694aa79dae47ad", "font_size": -19856694, "type": "automation", "created": "2019-04-16T00:43:22.038Z", "created_by": "5cb7b531d06cceb89fd21b1c", "last_updated": "2019-04-16T00:43:22.038Z", "last_updated_by": "Pronghorn", "lastUpdatedVersion": "83784273513.7581592.02137112413", "canvasVersion": 1, "name": "elit enim Duis", "description": null, "preAutomationTime": 52905453.35806197, "sla": -65815259.81482139, "decorators": [ { "type": "encryption", "pointer": "/e+1vTt/~0" }, { "type": "encryption", "pointer": "/zKi9nxFQ/l6GgFrUSmFr" }, { "type": "encryption", "pointer": "/T/~0/~1/onS/lsrE/AFYaC4ahfKd/~1/~1/~1" } ], "transitions": { "workflow_start": { "workflow_start": { "state": "success", "type": "revert" }, "workflow_end": { "state": "failure", "type": "standard" }, "error_handler": { "state": "error", "type": "revert" } }, "workflow_end": { "workflow_start": { "state": "success", "type": "revert" }, "workflow_end": { "state": "success", "type": "revert" }, "error_handler": { "state": "failure", "type": "loop" } }, "error_handler": { "workflow_start": { "state": "success", "type": "revert" }, "workflow_end": { "state": "failure", "type": "revert" }, "error_handler": { "state": "success", "type": "loop" } } }, "status": "paused", "error": [ { "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 }, { "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 } ], "ancestors": [ "4321abcdef694aa79dae47ad", "4321abcdef694aa79dae47ad", "5cb7b531d06cceb89fd21b1c", "5cb7b531d06cceb89fd21b1c" ], "tasks": { "98": { "actor": "$var.e._0bND3", "groups": [ "5cb7b531d06cceb89fd21b1c", "5cb7b531d06cceb89fd21b1c", "5cb7b531d06cceb89fd21b1c" ], "iterations": [ "6ffce28f-37f8-48a0-a026-5567120def79", "9f3a1fc3-5192-470e-bdcb-9a8ac978e1e5" ], "x": 45264975.38178763, "y": 79664535.79653764, "gridCoordinate": { "x": 599309.1549470872, "y": 52175823.60532588 }, "name": "non deserunt", "location": "Broker", "locationType": null, "app": "in deserunt irure nisi", "canvasName": "laboris aute", "displayName": "nulla officia non aliquip", "summary": "dolore mollit commodo", "description": "et aliqua velit consectetur eiusmod", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/~0/Vxgc..9XZ/ySOJA/T1/~1/Cj/K/~0/W/~1/JhZ/yj" }, { "type": "encryption", "pointer": "/S/~0/~0/r55JFMBN/~0/~1/z4U1MWc" }, { "type": "encryption", "pointer": "/O/lzo/~1/nq,HzvjYvc//~1/~0/~1" }, { "type": "encryption", "pointer": "/~1/ik/dEW" } ] }, "deprecated": true, "scheduled": false, "matched": [ { "key": "Duis adipisicing consequat", "highlightString": "quis Ut sint" }, { "key": "fugiat ea dolore ut", "highlightString": "deserunt enim consectetur sint" }, { "key": "nostrud officia anim in", "highlightString": "velit" }, { "key": "pariatur consectetur eiusmod", "highlightString": "aute enim" }, { "key": "nisi consectetur", "highlightString": "et" } ], "status": "complete", "previous": { "incomplete": [ "workflow_start", "workflow_end", "3a1f" ], "complete": [ "e28f", "e28f" ], "error": [ "e28f", "3a1f", "error_handler", "e28f" ] }, "taskId": "3a1f", "transitions": { "success": { "task": "3a1f", "type": "loop" }, "failure": { "task": "workflow_start", "type": "revert" }, "error": { "task": "workflow_end", "type": "revert" } }, "serverId": "labore adipisicing", "start_time": "2019-04-16T00:43:22.038Z", "end_time": 90928855.05496377, "finish_state": "error", "retrySettings": { "state": [ "failure", "failure", "error" ], "autoRetry": false, "limit": 18330985, "delay": 40191921, "count": 98043028 }, "type": "automatic" }, "workflow_start": { "x": -31976982.54680161, "y": -31532544.405568168, "gridCoordinate": { "x": 12372780.82402718, "y": 49810788.840462685 }, "name": "workflow_start", "summary": "workflow_start", "taskId": "workflow_start", "metrics": { "start_time": -23153755.895659283, "finish_state": "success", "user": "Pronghorn" }, "groups": [ "4321abcdef694aa79dae47ad" ], "iterations": [ "9f3a1fc3-5192-470e-bdcb-9a8ac978e1e5", "9f3a1fc3-5192-470e-bdcb-9a8ac978e1e5", "6ffce28f-37f8-48a0-a026-5567120def79", "6ffce28f-37f8-48a0-a026-5567120def79", "6ffce28f-37f8-48a0-a026-5567120def79" ], "actor": "$var.d0.SZ", "location": "Application", "locationType": null, "app": "ex", "canvasName": "ipsum esse", "displayName": "incididunt sint", "description": "id ut in", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/~1/~1/S3F3LRSTf" }, { "type": "encryption", "pointer": "/~1/~1/RSIQq4x,J/~0/~1/~0" }, { "type": "encryption", "pointer": "/R+sErP6pv/u6JLy/~0" } ] }, "deprecated": true, "scheduled": true, "matched": [ { "key": "mollit commodo", "highlightString": "ea commodo" }, { "key": "laborum velit", "highlightString": "tempor magna do fugiat" }, { "key": "nisi in ullamco Ut commodo", "highlightString": "non" }, { "key": "eiusmod magna commodo irure", "highlightString": "fugiat reprehenderit ea" }, { "key": "magna ex", "highlightString": "dolore dolor sit cupidatat in" } ], "status": "scheduled", "previous": { "incomplete": [ "error_handler", "e28f", "workflow_end" ], "complete": [ "e28f", "3a1f", "e28f", "e28f", "workflow_end" ], "error": [ "error_handler", "workflow_start", "e28f", "e28f", "e28f" ] }, "transitions": { "success": { "task": "workflow_start", "type": "revert" }, "failure": { "task": "error_handler", "type": "loop" }, "error": { "task": "workflow_end", "type": "standard" } }, "serverId": "non aliqua", "start_time": "2019-04-16T00:43:22.038Z", "end_time": 20423792.560565785, "finish_state": "failure", "retrySettings": { "state": [ "success", "error", "failure" ], "autoRetry": true, "limit": 41536755, "delay": 13052873, "count": 24826771 }, "type": "automatic" }, "workflow_end": { "x": -78392841.56692675, "y": 77134973.33549565, "gridCoordinate": { "x": -91541034.12968935, "y": -52610252.20110098 }, "name": "workflow_end", "summary": "workflow_end", "taskId": "workflow_end", "endTasks": { "incomplete": [ "3a1f", "e28f", "e28f", "workflow_start", "workflow_end" ], "complete": [ "workflow_end", "workflow_end", "e28f", "3a1f" ], "error": [ "workflow_end" ] }, "metrics": { "end_time": -4256115.88442418, "run_time": -55977950.39060487 }, "groups": [ "4321abcdef694aa79dae47ad", "4321abcdef694aa79dae47ad", "4321abcdef694aa79dae47ad", "5cb7b531d06cceb89fd21b1c", "4321abcdef694aa79dae47ad" ], "iterations": [ "9f3a1fc3-5192-470e-bdcb-9a8ac978e1e5" ], "actor": "$var.job.0inm", "location": "Adapter", "locationType": "labore Excepteur", "app": "esse", "canvasName": "sint officia mollit aliqua", "displayName": "eu", "description": "magna", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/I8sV/xJu/~1" }, { "type": "encryption", "pointer": "/~0/~0/VOV3sb8tY/~1/~0/~1/~1/P" }, { "type": "encryption", "pointer": "/~1/~1/~1/~1/XeN8biGU-Xu/zStG/ZLVq" }, { "type": "encryption", "pointer": "/Er6chr/~0/U8mDK/~0/NuKeFuXZ/~0/~1/~1/~1/~1/eL1lMI6,hh" } ] }, "deprecated": false, "scheduled": true, "matched": [ { "key": "deserunt amet eu qui magna", "highlightString": "non" } ], "status": "error", "previous": { "incomplete": [ "workflow_end" ], "complete": [ "error_handler", "workflow_start" ], "error": [ "e28f", "3a1f", "workflow_start" ] }, "transitions": { "success": { "task": "error_handler", "type": "standard" }, "failure": { "task": "error_handler", "type": "loop" }, "error": { "task": "3a1f", "type": "loop" } }, "serverId": "consequat voluptate culpa fugiat", "start_time": "2019-04-16T00:43:22.038Z", "end_time": -1500597.716454029, "finish_state": "success", "retrySettings": { "state": [ "failure", "error" ], "autoRetry": true, "limit": 27073204, "delay": 29913090, "count": 58590741 }, "type": "automatic" }, "error_handler": { "x": 59368959.72862676, "y": -78319074.14112757, "gridCoordinate": { "x": 5910091.546202928, "y": -20818667.24267991 }, "name": "childJob", "location": "Application", "locationType": null, "app": "in", "canvasName": "dolor", "displayName": "cillum", "summary": "culpa consequat", "description": "eu velit", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/CGz/F3Pg5/~0/VByo" }, { "type": "encryption", "pointer": "/~1" }, { "type": "encryption", "pointer": "/tFaUzCKPkCC/~0/~1/diHc/rx/CP-/WPjp/ikmIaviV/flc7rIT/~0" }, { "type": "encryption", "pointer": "/U//~0/~0/~1/wI9PHRaWD4" } ] }, "deprecated": false, "scheduled": true, "matched": [ { "key": "ex", "highlightString": "in ut anim voluptate nulla" } ], "status": "scheduled", "previous": { "incomplete": [ "error_handler", "workflow_end", "workflow_end", "e28f" ], "complete": [ "e28f", "error_handler", "3a1f", "workflow_end", "workflow_start" ], "error": [ "e28f", "error_handler", "error_handler", "e28f" ] }, "taskId": "3a1f", "transitions": { "success": { "task": "workflow_end", "type": "loop" }, "failure": { "task": "e28f", "type": "standard" }, "error": { "task": "workflow_start", "type": "loop" } }, "serverId": "quis culpa labore", "start_time": "2019-04-16T00:43:22.038Z", "end_time": 10350965.675023094, "finish_state": "error", "retrySettings": { "state": [ "error" ], "autoRetry": false, "limit": 25630646, "delay": 36141331, "count": 46035575 }, "type": "operation" } }, "errorHandler": null, "groups": [ "5cb7b531d06cceb89fd21b1c", "4321abcdef694aa79dae47ad" ], "watchers": [ "Pronghorn", "Pronghorn", "Pronghorn" ], "metrics": { "start_time": 13404743.913158685, "progress": 0.7373156065583681, "end_time": 39945399.09610522, "user": "Pronghorn", "owner": "Pronghorn" } }
{ "$ref": "job-db" }