{
  "$id": "https://firefox-ci-tc.services.mozilla.com/schemas/queue/v1/task-completed-message.json#",
  "$schema": "https://firefox-ci-tc.services.mozilla.com/schemas/common/metaschema.json#",
  "additionalProperties": false,
  "description": "Message reporting that a task has complete successfully.\n",
  "properties": {
    "runId": {
      "description": "Id of the run that completed the task\n",
      "maximum": 1000,
      "minimum": 0,
      "type": "integer"
    },
    "status": {
      "$ref": "task-status.json#"
    },
    "task": {
      "$ref": "task-pulse-definition.json#"
    },
    "version": {
      "description": "Message version",
      "enum": [
        1
      ],
      "type": "integer"
    },
    "workerGroup": {
      "description": "Identifier for the worker-group within which this run ran.\n",
      "maxLength": 38,
      "minLength": 1,
      "pattern": "^([a-zA-Z0-9-_]*)$",
      "type": "string"
    },
    "workerId": {
      "description": "Identifier for the worker that executed this run.\n",
      "maxLength": 38,
      "minLength": 1,
      "pattern": "^([a-zA-Z0-9-_]*)$",
      "type": "string"
    }
  },
  "required": [
    "version",
    "status",
    "runId",
    "workerGroup",
    "workerId"
  ],
  "title": "Task Completed Message",
  "type": "object"
}