Get task execution details

/tasks/{task_id}/execution_details

For general information on the API, including formatting, parameters, and pagination, please see the API Overview.

❗️

Early release status

Note that this is a fully-functional early release feature. The call, and the format of the information returned is subject to change.

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.

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 Seven Bridges Platform.

https://cavatica-api.sbgenomics.com/v2/tasks/{task_id}/execution_details

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

GET /v2/tasks/67f68072-45b6-12b3-789c-37be8b0f2f04/execution_details HTTP/1.1
Host: cavatica-api.sbgenomics.com
X-SBG-Auth-Token: 3259c50e1ac5426ea9t6573259740f74
curl -s -H "X-SBG-Auth-Token: 3259c50e1ac5426ea9t6573259740f74" -H "content-type: application/json" -X GET "https://cavatica-api.sbgenomics.com/v2/tasks/67f68072-45b6-12b3-789c-37be8b0f2f04/execution_details"

Header Fields

NameDescription
X-SBG-Auth-Token
required
Your CAVATICA authentication token.

Path parameters

NameDescription
task_id
required
The ID of the task you are querying

Query parameters

NameData typeDescription
fieldsstringSelector specifying a subset of fields to include in the response.

Response

See a list of CAVATICA-specific response codes that may be contained in the body of the response.

Example response body

{
  "href": "https://cavatica-api.sbgenomics.com/v2/tasks/67f68072-45b6-12b3-789c-37be8b0f2f04/execution_details",
  "start_time": "2017-04-20T15:30:11Z",
  "end_time": "2017-04-20T15:36:29Z",
  "status": "COMPLETED",
  "message": "Completed",
  "jobs": [
    {
      "name": "FastQC_1_0_s",
      "start_time": "2017-04-20T15:33:41Z",
      "end_time": "2017-04-20T15:34:25Z",
      "status": "COMPLETED",
      "command_line": "fastqc --noextract --outdir . --quiet --threads 4 /sbgenomics/Projects/723c949a-789c-12b3-45b6-b2dd0d8d0021/hg00105.srr711354.fastq",
      "instance": {
        "id": "i-123455ac85c9abcde",
        "type": "c4.2xlarge",
        "provider": "AWS",
        "disk": {
          "size": 1024,
          "unit": "GB",
          "type": "amazon-gp2"
        }
      },
      "logs": {
        "cmd.log": "https://cavatica-api.sbgenomics.com/v2/files/567890abc9b0307bc0414164/download_info",
        "job.err.log": "https://cavatica-api.sbgenomics.com/v2/files/567890abc1e5339df0414123/download_info",
        "job.tree.log": "https://cavatica-api.sbgenomics.com/v2/files/567890abc4f3066bc3750174/download_info",
        "stderr": "https://cavatica-api.sbgenomics.com/v2/files/567890abc8a5639cc6722063/download_info"
      },
      "docker": {
        "checksum": "sha256:642f70b2d64dffa123d4aea95aa0850a69ab8b09922b56b0b92e40a741cddd29"
      }
    },
    {
      "name": "SBG_Html2b64_1_0_s",
      "start_time": "2017-04-20T15:35:54Z",
      "end_time": "2017-04-20T15:36:27Z",
      "status": "COMPLETED",
      "command_line": "python /opt/sbg_html_to_b64.py --input /sbgenomics/Projects/723c949a-789c-12b3-45b6-b2dd0d8d0021/workspace/723c949a-789c-12b3-45b6-b2dd0d8d0021/fastqc-analysis_FastQC_1_0_s/hg00105.srr711354_fastqc.zip",
      "instance": {
        "id": "i-054205ac85c9debcf",
        "type": "c4.2xlarge",
        "provider": "AWS",
        "disk": {
          "size": 1024,
          "unit": "GB",
          "type": "amazon-gp2"
        }
      },
      "logs": {
        "cmd.log": "https://cavatica-api.sbgenomics.com/v2/files/567890abcc947a1eecc6d5aa/download_info",
        "job.err.log": "https://cavatica-api.sbgenomics.com/v2/files/567890abcc947a1eecc6d5b4/download_info",
        "job.tree.log": "https://cavatica-api.sbgenomics.com/v2/files/567890abcc947a1eecc6d5ce/download_info",
        "stderr": "https://cavatica-api.sbgenomics.com/v2/files/567890abc8a5136ec6127063/download_info"
      },
      "docker": {
        "checksum": "sha256:0a7b35a10596c43f6b1235e511692e09e6c3fbc3870c106b18bc4dac3bb21ea8"
      }
    }
  ]
}

Language