Skip to content
HALOWERK

Codewerk

http retry deadline plan

Return an exponential retry schedule that fits the supplied end-to-end deadline. Local data only.

POST https://code.halowerk.com/v1/http-retry-deadline-plan

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
attempt_msintegerYes
initial_delay_msintegerYes
multipliernumberYes
max_delay_msintegerYes
max_attemptsintegerYes
deadline_msintegerYes
Show full input schema
{
  "type": "object",
  "properties": {
    "attempt_ms": {
      "type": "integer",
      "minimum": 1,
      "maximum": 100000
    },
    "initial_delay_ms": {
      "type": "integer",
      "minimum": 0,
      "maximum": 100000
    },
    "multiplier": {
      "type": "number",
      "minimum": 1,
      "maximum": 5
    },
    "max_delay_ms": {
      "type": "integer",
      "minimum": 0,
      "maximum": 1000000
    },
    "max_attempts": {
      "type": "integer",
      "minimum": 1,
      "maximum": 20
    },
    "deadline_ms": {
      "type": "integer",
      "minimum": 1,
      "maximum": 10000000
    }
  },
  "required": [
    "attempt_ms",
    "initial_delay_ms",
    "multiplier",
    "max_delay_ms",
    "max_attempts",
    "deadline_ms"
  ],
  "additionalProperties": false
}

Open original schema

Published input example

{
  "attempt_ms": 100,
  "initial_delay_ms": 200,
  "multiplier": 2,
  "max_delay_ms": 5000,
  "max_attempts": 5,
  "deadline_ms": 1500
}

Result & documentation

Machine-readable documentation of this hub

Source of this page: the published HALOWERK catalog. Updated: 2026-11-18 UTC.

More endpoints in this hub

All endpoints in this hub โ†’