{"metadata":{"image":[],"title":"","description":""},"api":{"url":"","auth":"required","examples":{"codes":[]},"method":"get","params":[],"results":{"codes":[]},"settings":""},"next":{"description":"","pages":[]},"title":"Get task execution details","type":"endpoint","slug":"get-task-execution-details","excerpt":"/tasks/{task_id}/execution_details\n\nFor general information on the API, including formatting, parameters, and pagination, please see the [API Overview](the-api).","body":"[block:callout]\n{\n \"type\": \"danger\",\n \"body\": \"Note that this is a fully-functional early release feature. The call, and the format of the information returned is subject to change.\",\n \"title\": \"Early release status\"\n}\n[/block]\nThis call returns execution details of the specified task. The task is referred to by its ID, which you can obtain by making the [call to list all tasks you can access](list-tasks-you-can-access). \n\nThe call breaks down the information into the task's distinct jobs. A job is a single subprocess carried out in a task.\n\nThe information returned by this call is broadly similar to that which can be found in the [task stats and logs provided on the Seven Bridges Platform](http://docs.sevenbridges.com/docs/review-task-page). \n[block:code]\n{\n \"codes\": [\n {\n \"code\": \"https://cavatica-api.sbgenomics.com/v2/tasks/{task_id}/execution_details\",\n \"language\": \"text\",\n \"name\": \"API path\"\n }\n ]\n}\n[/block]\n The task execution details include the following information:\n\n * The name of the command line job that executed\n * The start time of the job\n * End time of the job (if it completed)\n * The status of the job (`DONE`, `FAILED`, or `RUNNING`)\n * Information on the computational instance that the job was run on, including the provider ID, the type of instance used and the cloud service provider\n * A link that can be used to download the standard error logs for the job\n * SHA hash of the Docker image ('checksum')\n\n##Request\n\n###Example request\n[block:code]\n{\n \"codes\": [\n {\n \"code\": \"GET /v2/tasks/08c5ce64-1551-4b7d-b054-63a1517bc7bb/execution_details HTTP/1.1\\nHost: cavatica-api.sbgenomics.com\\nX-SBG-Auth-Token: 3259c50e1ac5426ea9t6573259740f74\\n\",\n \"language\": \"http\",\n \"name\": null\n },\n {\n \"code\": \"curl -s -H \\\"X-SBG-Auth-Token: 3259c50e1ac5426ea9t6573259740f74\\\" -H \\\"content-type: application/json\\\" -X GET \\\"https://cavatica-api.sbgenomics.com/v2/tasks/08c5ce64-1551-4b7d-b054-63a1517bc7bb/execution_details\\\"\",\n \"language\": \"curl\",\n \"name\": \"cURL\"\n }\n ],\n \"sidebar\": true\n}\n[/block]\n\n###Header Fields\n[block:parameters]\n{\n \"data\": {\n \"h-0\": \"Name\",\n \"h-1\": \"Description\",\n \"0-0\": \"X-SBG-Auth-Token\\nrequired\",\n \"0-1\": \"Your Cavatica [authentication token](doc:get-your-authentication-token).\",\n \"h-2\": \"\"\n },\n \"cols\": 2,\n \"rows\": 1\n}\n[/block]\n\n###Path parameters\n[block:parameters]\n{\n \"data\": {\n \"0-0\": \"`task_id`\\n*required*\",\n \"h-0\": \"Name\",\n \"h-1\": \"Description\",\n \"0-1\": \"The ID of the task you are querying\"\n },\n \"cols\": 2,\n \"rows\": 1\n}\n[/block]\n\n###Query parameters\n[block:parameters]\n{\n \"data\": {\n \"h-0\": \"Name\",\n \"h-1\": \"Data type\",\n \"h-2\": \"Description\",\n \"0-0\": \"fields\",\n \"0-1\": \"string\",\n \"0-2\": \"Selector specifying a subset of fields to include in the response.\"\n },\n \"cols\": 3,\n \"rows\": 1\n}\n[/block]\n\n##Response\n\n[See a list of Cavatica-specific response codes that may be contained in the body of the response.](doc:api-status-codes) \n\n###Example response body\n[block:code]\n{\n \"codes\": [\n {\n \"code\": \"{\\n \\\"href\\\": \\\"https://cavatica-api.sbgenomics.com/v2/tasks/48ed6043-d531-42be-afb1-d2d5bbae6ca3/execution_details\\\",\\n \\\"start_time\\\": \\\"2017-04-20T15:30:11Z\\\",\\n \\\"end_time\\\": \\\"2017-04-20T15:36:29Z\\\",\\n \\\"status\\\": \\\"COMPLETED\\\",\\n \\\"message\\\": \\\"Completed\\\",\\n \\\"jobs\\\": [\\n {\\n \\\"name\\\": \\\"FastQC_1_0_s\\\",\\n \\\"start_time\\\": \\\"2017-04-20T15:33:41Z\\\",\\n \\\"end_time\\\": \\\"2017-04-20T15:34:25Z\\\",\\n \\\"status\\\": \\\"COMPLETED\\\",\\n \\\"command_line\\\": \\\"fastqc --noextract --outdir . --quiet --threads 4 /sbgenomics/Projects/10e26e13-cf6a-4c44-8f58-b7352187b50e/hg00105.srr711354.fastq\\\",\\n \\\"instance\\\": {\\n \\\"id\\\": \\\"i-054205ac85c9debcf\\\",\\n \\\"type\\\": \\\"c4.2xlarge\\\",\\n \\\"provider\\\": \\\"AWS\\\",\\n \\\"disk\\\": {\\n \\\"size\\\": 1024,\\n \\\"unit\\\": \\\"GB\\\",\\n \\\"type\\\": \\\"amazon-gp2\\\"\\n }\\n },\\n \\\"logs\\\": {\\n \\\"cmd.log\\\": \\\"https://cavatica-api.sbgenomics.com/v2/files/58f8d4d11c947a1eecc6d563/download_info\\\",\\n \\\"job.err.log\\\": \\\"https://cavatica-api.sbgenomics.com/v2/files/58f8d4f41c947a1eecc6d56d/download_info\\\",\\n \\\"job.tree.log\\\": \\\"https://cavatica-api.sbgenomics.com/v2/files/58f8d5001c947a1eecc6d58f/download_info\\\",\\n \\\"stderr\\\": \\\"https://cavatica-api.sbgenomics.com/v2/files/58f8d4f41c947a1eecc6d56d/download_info\\\"\\n },\\n \\\"docker\\\": {\\n \\\"checksum\\\": \\\"sha256:642f70b2d64dffa562d4aea95aa0850a69ab8b09922b56b0b92e40a741cddd29\\\"\\n }\\n },\\n {\\n \\\"name\\\": \\\"SBG_Html2b64_1_0_s\\\",\\n \\\"start_time\\\": \\\"2017-04-20T15:35:54Z\\\",\\n \\\"end_time\\\": \\\"2017-04-20T15:36:27Z\\\",\\n \\\"status\\\": \\\"COMPLETED\\\",\\n \\\"command_line\\\": \\\"python /opt/sbg_html_to_b64.py --input /sbgenomics/Projects/10e26e13-cf6a-4c44-8f58-b7352187b50e/workspace/48ed6043-d531-42be-afb1-d2d5bbae6ca3/fastqc-analysis_FastQC_1_0_s/hg00105.srr711354_fastqc.zip\\\",\\n \\\"instance\\\": {\\n \\\"id\\\": \\\"i-054205ac85c9debcf\\\",\\n \\\"type\\\": \\\"c4.2xlarge\\\",\\n \\\"provider\\\": \\\"AWS\\\",\\n \\\"disk\\\": {\\n \\\"size\\\": 1024,\\n \\\"unit\\\": \\\"GB\\\",\\n \\\"type\\\": \\\"amazon-gp2\\\"\\n }\\n },\\n \\\"logs\\\": {\\n \\\"cmd.log\\\": \\\"https://cavatica-api.sbgenomics.com/v2/files/58f8d55a1c947a1eecc6d5aa/download_info\\\",\\n \\\"job.err.log\\\": \\\"https://cavatica-api.sbgenomics.com/v2/files/58f8d5781c947a1eecc6d5b4/download_info\\\",\\n \\\"job.tree.log\\\": \\\"https://cavatica-api.sbgenomics.com/v2/files/58f8d57b1c947a1eecc6d5ce/download_info\\\",\\n \\\"stderr\\\": \\\"https://cavatica-api.sbgenomics.com/v2/files/58f8d5781c947a1eecc6d5b4/download_info\\\"\\n },\\n \\\"docker\\\": {\\n \\\"checksum\\\": \\\"sha256:0a7b35a10596c43f6b2375e511692e09e6c3fbc3870c106b18bc4dac3bb21ea8\\\"\\n }\\n }\\n ]\\n}\",\n \"language\": \"json\"\n }\n ],\n \"sidebar\": true\n}\n[/block]\n<div align=\"right\"><a href=\"#top\">top</a></div>\n\n<hr>","updates":[],"order":76,"isReference":false,"hidden":false,"sync_unique":"","link_url":"","link_external":false,"_id":"5774fab3605b770e0037be7c","user":"575e85ac41c8ba0e00259a44","createdAt":"2016-06-30T10:55:47.241Z","githubsync":"","version":{"version":"1.0","version_clean":"1.0.0","codename":"","is_stable":true,"is_beta":false,"is_hidden":false,"is_deprecated":false,"categories":["5773dcfc255e820e00e1cd51","5773df36904b0c0e00ef05ff","577baf92451b1e0e006075ac","577bb183b7ee4a0e007c4e8d","577ce77a1cf3cb0e0048e5ea","577d11865fd4de0e00cc3dab","578e62792c3c790e00937597","578f4fd98335ca0e006d5c84","578f5e5c3d04570e00976ebb","57bc35f7531e000e0075d118","57f801b3760f3a1700219ebb","5804d55d1642890f00803623","581c8d55c0dc651900aa9350","589dcf8ba8c63b3b00c3704f","594cebadd8a2f7001b0b53b2","59a562f46a5d8c00238e309a","5a2aa096e25025003c582b58","5a2e79566c771d003ca0acd4","5a3a5166142db90026f24007","5a3a52b5bcc254001c4bf152","5a3a574a2be213002675c6d2","5a3a66bb2be213002675cb73","5a3a6e4854faf60030b63159","5c8a68278e883901341de571","5cb9971e57bf020024523c7b","5cbf1683e2a36d01d5012ecd","5dc15666a4f788004c5fd7d7","5eaff69e844d67003642a020","5eb00899b36ba5002d35b0c1","5eb0172be179b70073dc936e","5eb01b42b36ba5002d35ebba","5eb01f202654a20136813093","5eb918ef149186021c9a76c8","5f0839d3f4b24e005ebbbc29","5f893e508c9862002d0614a9"],"_id":"5773dcfc255e820e00e1cd50","__v":35,"createdAt":"2016-06-29T14:36:44.812Z","releaseDate":"2016-06-29T14:36:44.812Z","project":"5773dcfc255e820e00e1cd4d"},"category":{"sync":{"isSync":false,"url":""},"pages":[],"title":"Cavatica API","slug":"api","order":18,"from_sync":false,"reference":false,"_id":"5773df36904b0c0e00ef05ff","createdAt":"2016-06-29T14:46:14.277Z","version":"5773dcfc255e820e00e1cd50","__v":0,"project":"5773dcfc255e820e00e1cd4d"},"parentDoc":null,"project":"5773dcfc255e820e00e1cd4d","__v":4}
getGet task execution details
/tasks/{task_id}/execution_details
For general information on the API, including formatting, parameters, and pagination, please see the [API Overview](the-api).