Skip to content
HALOWERK

Calculators and Rule Checks

service queue minimum staff

Queue staffing finds the smallest number of workers that meets a maximum wait for every job in the trace. Use it when an agent needs sizing a service pool.

POST https://rechen.halowerk.com/v1/service-queue-minimum-staff

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
arrivals_sarrayYes
service_sarrayYes
max_wait_sintegerYes
max_workersintegerYes
Show full input schema
{
  "type": "object",
  "properties": {
    "arrivals_s": {
      "type": "array",
      "items": {
        "type": "integer",
        "minimum": 0,
        "maximum": 2592000
      },
      "maxItems": 200,
      "minItems": 1
    },
    "service_s": {
      "type": "array",
      "items": {
        "type": "integer",
        "minimum": 1,
        "maximum": 604800
      },
      "maxItems": 200,
      "minItems": 1
    },
    "max_wait_s": {
      "type": "integer",
      "minimum": 0,
      "maximum": 604800
    },
    "max_workers": {
      "type": "integer",
      "minimum": 1,
      "maximum": 32
    }
  },
  "required": [
    "arrivals_s",
    "service_s",
    "max_wait_s",
    "max_workers"
  ],
  "additionalProperties": false
}

Open original schema

Published input example

{
  "arrivals_s": [
    0,
    0,
    0,
    0,
    0
  ],
  "service_s": [
    34,
    15,
    13,
    15,
    19
  ],
  "max_wait_s": 15,
  "max_workers": 8
}

Result & documentation

Show published result schema
{
  "type": "object",
  "required": [
    "measured_at",
    "source",
    "data",
    "limitations"
  ],
  "properties": {
    "measured_at": {
      "type": "string"
    },
    "source": {
      "type": "object",
      "required": [
        "reference",
        "retrieved_at"
      ],
      "properties": {
        "reference": {
          "type": "string"
        },
        "retrieved_at": {
          "type": "string"
        }
      }
    },
    "data": {
      "type": "object",
      "properties": {
        "feasible": {
          "type": "boolean"
        },
        "workers": {
          "type": "integer"
        },
        "worst_wait_s": {
          "type": "integer"
        }
      },
      "required": [
        "feasible",
        "workers",
        "worst_wait_s"
      ]
    },
    "limitations": {
      "type": "string"
    }
  }
}

Machine-readable documentation of this hub

Source of this page: the published HALOWERK catalog. Updated: 2026-12-05 UTC.

More endpoints in this hub

All endpoints in this hub →