---
agentTools:
  projectIndex: https://docs.cancergenomicscloud.org/llms.txt
---

# Get task execution details

/tasks/{task_id}/execution_details

[block:callout]
{
  "type": "danger",
  "body": "Note that this is a fully-functional early release feature. The call, and the format of the information returned is subject to change.",
  "title": "Early release status"
}
[/block]

This 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).

The call breaks down the information into the task's distinct jobs. A job is a single subprocess carried out in a task.

The information returned by this call is broadly similar to that which can be found in the [task stats and logs provided on the CGC](review-task-page).

[block:code]
{
  "codes": [
    {
      "code": "https://cgc-api.sbgenomics.com/v2/tasks/{task_id}/execution_details",
      "language": "text",
      "name": "Path"
    }
  ]
}
[/block]

The task execution details include the following information:

* The name of the command line job that executed
* The start time of the job
* End time of the job (if it completed)
* The status of the job (`DONE`, `FAILED`, or `RUNNING`)
* 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
* A link that can be used to download the standard error logs for the job
* SHA hash of the Docker image ('checksum')

\##Request

\###Example request

[block:code]
{
  "codes": [
    {
      "code": "GET /v2/tasks/08c5da64-1329-ba3e-b014-62a1617bc7db/execution_details HTTP/1.1\nHost: cgc-api.sbgenomics.com\nX-SBG-Auth-Token: 3210a98c1db9318fa9d9273156740f74",
      "language": "http",
      "name": null
    },
    {
      "code": "curl -s -H \"X-SBG-Auth-Token: 3210a98c1db9318fa9d9273156740f74\" -H \"content-type: application/json\" -X GET \"https:/cgc-api.sbgenomics.com/v2/tasks/08c5da64-1329-ba3e-b014-62a1617bc7db/execution_details\"",
      "language": "curl",
      "name": "cURL"
    }
  ],
  "sidebar": true
}
[/block]

\###Header Fields

[block:parameters]
{
  "data": {
    "h-0": "Name",
    "h-1": "Description",
    "0-0": "X-SBG-Auth-Token\nrequired",
    "0-1": "Your CGC [authentication token](https://docs.cancergenomicscloud.org/docs/get-your-authentication-token).",
    "h-2": ""
  },
  "cols": 2,
  "rows": 1
}
[/block]

\###Path parameters

[block:parameters]
{
  "data": {
    "0-0": "`task_id`\n*required*",
    "h-0": "Name",
    "h-1": "Description",
    "0-1": "The ID of the task you are querying"
  },
  "cols": 2,
  "rows": 1
}
[/block]

\###Query parameters

[block:parameters]
{
  "data": {
    "h-0": "Name",
    "h-1": "Data type",
    "h-2": "Description",
    "0-0": "fields",
    "0-1": "string",
    "0-2": "Selector specifying a subset of fields to include in the response."
  },
  "cols": 3,
  "rows": 1
}
[/block]

\##Response

[See a list of CGC-specific response codes that may be contained in the body of the response.](https://docs.cancergenomicscloud.org/docs/api-status-codes)

\###Example response body

[block:code]
{
  "codes": [
    {
      "code": "{\n  \"href\": \"https://cgc-api.sbgenomics.com/v2/tasks/08c5da64-1329-ba3e-b014-62a1617bc7db/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/10e33e13-cd6a-1c41-3f51-c7350987b50e/hg00105.srr71135114.fastq\",\n      \"instance\": {\n        \"id\": \"i-0542103ac85a9debcf\",\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://cgc-api.sbgenomics.com/v2/files/58f8d4d23b947a1eecc6d563/download_info\",\n        \"job.err.log\": \"https://cgc-api.sbgenomics.com/v2/files/58f8d4d23b947a1eecc6d56d/download_info\",\n        \"job.tree.log\": \"https://cgc-api.sbgenomics.com/v2/files/58f8d4d23b947a1eecc6d58f/download_info\",\n        \"stderr\": \"https://cgc-api.sbgenomics.com/v2/files/58f8d4d23b947a1eecc6d56d/download_info\"\n      },\n      \"docker\": {\n        \"checksum\": \"sha256:642f70b2d64dffa562d4aea95ae1850a69ab8b09922b56b0b92e40a741cddd29\"\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/10e33e13-cd6a-1c41-3f51-c7350987b50e/workspace/48ed6043-d532-12be-cfb1-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://cgc-api.sbgenomics.com/v2/files/58f8d55deb947a1eecc6d5aa/download_info\",\n        \"job.err.log\": \"https://cgc-api.sbgenomics.com/v2/files/58f8d55deb947a1eecc6d5b4/download_info\",\n        \"job.tree.log\": \"https://cgc-api.sbgenomics.com/v2/files/58f8d55deb947a1eecc6d5ce/download_info\",\n        \"stderr\": \"https://cgc-api.sbgenomics.com/v2/files/58f8d55deb947a1eecc6d5b4/download_info\"\n      },\n      \"docker\": {\n        \"checksum\": \"sha256:0a7b35a10596c43f6b2375e518892e09e6c3fbc3870c106b18bc4dac3bb21ea8\"\n      }\n    }\n  ]\n}",
      "language": "json"
    }
  ],
  "sidebar": true
}
[/block]