{
  "$id": "https://firefox-ci-tc.services.mozilla.com/schemas/queue/v1/claim-work-request.json#",
  "$schema": "https://firefox-ci-tc.services.mozilla.com/schemas/common/metaschema.json#",
  "additionalProperties": false,
  "description": "Request to claim a task for a worker to process.\n",
  "properties": {
    "tasks": {
      "default": 1,
      "description": "Number of tasks to attempt to claim.\n",
      "maximum": 32,
      "minimum": 1,
      "type": "integer"
    },
    "workerGroup": {
      "description": "Identifier for group that worker claiming the task is a part of.\n",
      "maxLength": 38,
      "minLength": 1,
      "pattern": "^([a-zA-Z0-9-_]*)$",
      "type": "string"
    },
    "workerId": {
      "description": "Identifier for worker within the given workerGroup\n",
      "maxLength": 38,
      "minLength": 1,
      "pattern": "^([a-zA-Z0-9-_]*)$",
      "type": "string"
    }
  },
  "required": [
    "workerGroup",
    "workerId",
    "tasks"
  ],
  "title": "Claim Work Request",
  "type": "object"
}