Summary
Get Jobs
Description
Get Jobs matching the query.
Route
POST /workflow_engine/queryJobs
Roles
admin
apiread
Parameters
Details Example Schema
Name
Type
Required
Description
query
object
yes
An object of property names and values to use in the query against the jobs collection. The property name must exist in the jobs collection. There must be at least 1 field you query upon.
Copied to Clipboard
{
"query": {
"someFieldName": "Some Value to query the against the someFieldName property"
}
}
Return
Details Example Schema
Name
Type
Description
job_details_array
array
All Jobs matching the query.
Copied to Clipboard
[
{
"_id": "4430ceadbd694aa79994ad47",
"name": "8917Test2",
"tasks": {
"workflow_start": {
"name": "workflow_start",
"groups": [],
"x": 0.08412582297000731,
"y": 0.4968944099378882,
"status": "complete",
"metrics": {
"owner": "Pronghorn",
"start_time": 1555430149763,
"end_time": 1555430169683,
"run_time": 75069184,
"finish_state": "canceled",
"server_id": "ac:de:48:00:11:22:3000",
"app": {
"id": "WorkFlowEngine",
"version": "1.2.3"
}
}
},
"workflow_end": {
"name": "workflow_end",
"groups": [],
"x": 0.08412582297000731,
"y": 0.4968944099378882,
"status": "complete",
"metrics": {
"owner": "5a3496c64da02d9dfa0b2f91",
"start_time": 1555430149763,
"end_time": 1555430169683,
"run_time": 75069184,
"finish_state": "canceled",
"server_id": "ac:de:48:00:11:22:3000",
"app": {
"id": "MOP",
"version": "3.2.1"
}
}
}
},
"transitions": {
"workflow_start": {
"6a90": {
"type": "standard",
"state": "success"
}
},
"6a90": {
"workflow_end": {
"type": "standard",
"state": "success"
}
}
},
"font_size": 12,
"created": "2018-07-26T19:37:05.000Z",
"created_by": "admin@pronghorn",
"last_updated": "2018-08-02T15:56:12.912Z",
"last_updated_by": "5b3496d74da02e9dfa0b2e91",
"groups": [],
"type": "automation",
"watchers": [
"5b3496d74da02e9dfa0b2e91",
"5b3496d74da02e9dfa0b2e91",
"5b3496d74da02e9dfa0b2e91"
],
"metrics": {
"owner": "Pronghorn",
"start_time": 1555430149763,
"end_time": 1555430169683,
"run_time": 75069184,
"finish_state": "canceled",
"server_id": "ac:de:48:00:11:22:3000",
"app": {
"id": "WorkflowBuilder",
"version": "1.2.3"
}
},
"status": "running",
"locked": false,
"error": [
{
"task": "job",
"message": "No available transitions found from completed task(s)",
"timestamp": 1555471643117
},
{
"task": "job",
"message": "No available transitions found from completed task(s)",
"timestamp": 1555471643117
}
]
}
]
Copied to Clipboard
{
"type": "array",
"items": {
"$ref": "jobsDocument"
}
}