Skip to content

Instantly share code, notes, and snippets.

@Mierdin
Created November 11, 2016 23:57
Show Gist options
  • Save Mierdin/cf97f23ddd9ada1d4965b089b6561d24 to your computer and use it in GitHub Desktop.
Save Mierdin/cf97f23ddd9ada1d4965b089b6561d24 to your computer and use it in GitHub Desktop.
vagrant@st2dev:~$ curl -X DELETE -H 'Connection: keep-alive' -H 'Accept-Encoding: gzip, deflate' -H 'Accept: */*' -H 'User-Agent: python-requests/2.11.1' -H 'X-Auth-Token: c64c7c82be38408f9dc406ceb2640d77' -H 'Content-Length: 0' http://127.0.0.1:9101/v1/executions/5826561132ed353e0b26994f
{
"status": "canceled",
"start_timestamp": "2016-11-11T23:36:49.158835Z",
"log": [
{
"status": "requested",
"timestamp": "2016-11-11T23:36:49.171000Z"
},
{
"status": "scheduled",
"timestamp": "2016-11-11T23:36:49.316000Z"
},
{
"status": "running",
"timestamp": "2016-11-11T23:36:49.435000Z"
},
{
"status": "canceling",
"timestamp": "2016-11-11T23:37:16.736000Z"
},
{
"status": "canceled",
"timestamp": "2016-11-11T23:37:17.025000Z"
}
],
"runner": {
"runner_module": "action_chain_runner",
"uid": "runner_type:action-chain",
"enabled": true,
"name": "action-chain",
"runner_parameters": {
"display_published": {
"default": false,
"type": "boolean",
"description": "Intermediate published variables will be stored and displayed."
},
"skip_notify": {
"default": [],
"type": "array",
"description": "List of tasks to skip notifications for."
}
},
"id": "582655f932ed353de19b4d94",
"description": "A runner for launching linear action chains."
},
"id": "5826561132ed353e0b26994f",
"elapsed_seconds": 61.982996,
"web_url": "https://st2dev/#/history/5826561132ed353e0b26994f/general",
"result": {
"tasks": [
{
"name": "c1",
"workflow": null,
"created_at": "2016-11-11T23:36:49.517638+00:00",
"updated_at": "2016-11-11T23:36:50.664876+00:00",
"state": "succeeded",
"result": {
"failed": false,
"stderr": "",
"return_code": 0,
"succeeded": true,
"stdout": "c1"
},
"id": "c1",
"execution_id": "5826561132ed353dc2bc9eb4"
},
{
"name": "c2",
"workflow": null,
"created_at": "2016-11-11T23:36:50.672628+00:00",
"updated_at": "2016-11-11T23:37:51.129007+00:00",
"state": "timeout",
"result": {
"succeeded": false,
"stdout": "",
"return_code": -9,
"failed": true,
"stderr": "",
"error": "Action failed to complete in 60 seconds"
},
"id": "c2",
"execution_id": "5826561232ed353dc2bc9eb7"
}
]
},
"context": {
"user": "stanley"
},
"action": {
"runner_type": "action-chain",
"name": "echochain",
"parameters": {
"skip_notify": {
"default": [
"c2"
]
}
},
"tags": [],
"enabled": true,
"entry_point": "chains/echochain.yaml",
"notify": {
"on-complete": {
"routes": [
"slack"
],
"message": "\"@channel: Action succeeded.\""
}
},
"uid": "action:examples:echochain",
"pack": "examples",
"ref": "examples.echochain",
"id": "582655fa32ed353de19b4da2",
"description": "Simple Action Chain workflow"
},
"liveaction": {
"runner_info": {
"hostname": "st2dev",
"pid": 15810
},
"parameters": {},
"action_is_workflow": true,
"callback": {},
"notify": {
"on-complete": {
"routes": [
"slack"
],
"message": "\"@channel: Action succeeded.\""
}
},
"action": "examples.echochain",
"id": "5826561132ed353e0b26994e"
},
"children": [
"5826561132ed353dc2bc9eb4",
"5826561232ed353dc2bc9eb7"
],
"end_timestamp": "2016-11-11T23:37:51.141831Z"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment