{
  "$id": "https://firefox-ci-tc.services.mozilla.com/schemas/queue/v1/task-reclaim-response.json#",
  "$schema": "https://firefox-ci-tc.services.mozilla.com/schemas/common/metaschema.json#",
  "additionalProperties": false,
  "description": "Response to a successful task claim\n",
  "properties": {
    "credentials": {
      "$ref": "task-credentials.json#"
    },
    "runId": {
      "description": "`run-id` assigned to this run of the task\n",
      "maximum": 1000,
      "minimum": 0,
      "type": "integer"
    },
    "status": {
      "$ref": "task-status.json#"
    },
    "takenUntil": {
      "description": "Time at which the run expires and is resolved as `exception`,\nwith reason `claim-expired` if the run haven't been reclaimed.\n",
      "format": "date-time",
      "type": "string"
    },
    "workerGroup": {
      "description": "Identifier for the worker-group within which this run started.\n",
      "maxLength": 38,
      "minLength": 1,
      "pattern": "^([a-zA-Z0-9-_]*)$",
      "type": "string"
    },
    "workerId": {
      "description": "Identifier for the worker executing this run.\n",
      "maxLength": 38,
      "minLength": 1,
      "pattern": "^([a-zA-Z0-9-_]*)$",
      "type": "string"
    }
  },
  "required": [
    "status",
    "runId",
    "workerGroup",
    "workerId",
    "takenUntil",
    "credentials"
  ],
  "title": "Task Reclaim Response",
  "type": "object"
}