elixir-cloud-aai / tesk-api

GA4GH TES API Service that translates tasks into Kubernetes Batch API calls
Apache License 2.0
7 stars 18 forks source link

TESTask logs.logs.exit_code not present in some cases #38

Open LakiG opened 2 years ago

LakiG commented 2 years ago

In some cases, the TES Task does not return the mandatory logs.logs.exit_code value. The state is different for each case, so the exact conditions cant be pinpointed to reproduce this.

The test was done on the https://csc-tesk-noauth.rahtiapp.fi/ server.

{
  "id": "task-41548687",
  "state": "CANCELED",
  "name": "string",
  "description": "string",
  "inputs": [
    {
      "url": "s3://my-object-store/file1",
      "path": "/data/file1",
      "type": "FILE"
    }
  ],
  "outputs": [
    {
      "url": "s3://my-object-store/outfile-1",
      "path": "/data/outfile",
      "type": "FILE"
    }
  ],
  "resources": {
    "cpu_cores": 4,
    "preemptible": false,
    "ram_gb": 8,
    "disk_gb": 40,
    "zones": [
      "us-west-1"
    ]
  },
  "executors": [
    {
      "image": "ubuntu:20.04",
      "command": [
        "/bin/md5",
        "/data/file1"
      ],
      "workdir": "/data/",
      "stdin": "/data/file1",
      "stdout": "/tmp/stdout.log",
      "stderr": "/tmp/stderr.log",
      "env": {
        "BLASTDB": "/data/GRC38",
        "HMMERDB": "/data/hmmer"
      }
    }
  ],
  "volumes": [
    "/vol/A/"
  ],
  "tags": {
    "WORKFLOW_ID": "cwl-01234",
    "PROJECT_GROUP": "alice-lab"
  },
  "logs": [
    {
      "logs": [],
      "metadata": {
        "USER_ID": "anonymousUser"
      },
      "start_time": "2022-07-12T23:52:05.000Z",
      "end_time": "2022-07-12T23:52:29.000Z",
      "system_logs": [
        "Removing failed jobs\nCancelling taskmaster: Got status Cancelled\n"
      ]
    }
  ],
  "creation_time": "2022-07-12T23:52:05.000Z"
}