Skip to content

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

@LakiG

Description

@LakiG

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"
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions