Skip to content
HALOWERK

Calculators and Rule Checks

service queue shortest first

Queue scheduling comparison measures changes in total and maximum wait if free workers select the shortest available job. Use it when an agent needs comparing nonpreemptive dispatch policies.

POST https://rechen.halowerk.com/v1/service-queue-shortest-first

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
arrivals_sarrayYes
service_sarrayYes
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
    },
    "workers": {
      "type": "integer",
      "minimum": 1,
      "maximum": 32
    }
  },
  "required": [
    "arrivals_s",
    "service_s",
    "workers"
  ],
  "additionalProperties": false
}

Open original schema

Published input example

{
  "arrivals_s": [
    0,
    0,
    0,
    0,
    0
  ],
  "service_s": [
    34,
    15,
    13,
    15,
    19
  ],
  "workers": 1
}

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": {
        "fifo_total_wait_s": {
          "type": "integer"
        },
        "shortest_total_wait_s": {
          "type": "integer"
        },
        "worst_wait_change_s": {
          "type": "integer"
        }
      },
      "required": [
        "fifo_total_wait_s",
        "shortest_total_wait_s",
        "worst_wait_change_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 →