{
  "schemaVersion": 1,
  "snapshotDate": "2026-10-23",
  "slug": "reference-app-core-core-delay",
  "title": "Delay",
  "section": "Library asset reference",
  "description": "Delay Waits before passing a value to the next step. This occupies a running node/worker; it is not a durable schedule or delayed-message queue. Sockets and configuration - exec (control): optional execution gate. - value (any, optional): p",
  "kind": "node",
  "url": "/wiki/reference-app-core-core-delay/",
  "markdown": "/wiki/reference-app-core-core-delay/index.md",
  "json": "/wiki/reference-app-core-core-delay/index.json",
  "headings": [
    {
      "id": "sockets-and-configuration",
      "title": "Sockets and configuration",
      "depth": 2
    },
    {
      "id": "example",
      "title": "Example",
      "depth": 2
    },
    {
      "id": "limits-and-failures",
      "title": "Limits and failures",
      "depth": 2
    },
    {
      "id": "catalog-identity",
      "title": "Catalog identity",
      "depth": 2
    },
    {
      "id": "inputs",
      "title": "Inputs",
      "depth": 2
    },
    {
      "id": "outputs",
      "title": "Outputs",
      "depth": 2
    },
    {
      "id": "configuration-schema",
      "title": "Configuration schema",
      "depth": 2
    },
    {
      "id": "source-and-installed-versions",
      "title": "Source and installed versions",
      "depth": 2
    }
  ],
  "sources": [
    "../OpenNodeFlow-Library/work/catalog-all.mjs",
    "../OpenNodeFlow-Library/work/azure-pack-consolidation-20261022/catalog-policy.mjs",
    "../OpenNodeFlow-Library/work/developer-packs-20261022/catalog.mjs",
    "shared/seed.ts",
    "shared/storage-library.ts",
    "shared/variable-library.ts",
    "shared/control-flow.ts",
    "shared/remote-routes.ts",
    "server/runtime-library.ts",
    "shared/error-library.ts",
    "shared/storage-model.ts",
    "shared/builtin-documentation.ts"
  ],
  "family": "app-core",
  "contract": {
    "key": "app.core.core.delay",
    "slug": "app-core-core-delay",
    "name": "Delay",
    "kind": "node",
    "family": "app-core",
    "packId": null,
    "category": "Logic",
    "description": "",
    "inputs": [
      {
        "id": "exec",
        "name": "Execute",
        "type": "control",
        "typeName": "Control",
        "required": false
      },
      {
        "id": "value",
        "name": "Value",
        "type": "any",
        "typeName": "Any",
        "required": false
      }
    ],
    "outputs": [
      {
        "id": "next",
        "name": "Next",
        "type": "control",
        "typeName": "Control",
        "required": false
      },
      {
        "id": "value",
        "name": "Value",
        "type": "any",
        "typeName": "Any",
        "required": false
      }
    ],
    "configSchema": {
      "type": "object",
      "properties": {
        "milliseconds": {
          "type": "number",
          "title": "Milliseconds",
          "default": 1000,
          "minimum": 0
        }
      }
    },
    "documentation": "# Delay\n\nWaits before passing a value to the next step. This occupies a running node/worker; it is not a durable schedule or delayed-message queue.\n\n## Sockets and configuration\n- **exec** (control): optional execution gate.\n- **value** (any, optional): payload to pass through.\n- **value** (any): unchanged input after sleeping.\n- **next** (control): automatic success route after the wait completes.\n- **milliseconds** (number): fresh default 1000, schema minimum 0. The body also uses 1000 when the value is nullish.\n\n## Example\nSet milliseconds to 2000 and wire an upstream next to Execute. Wire this node's next to a follow-up operation, and its value to that operation's data input if needed. The downstream node becomes eligible only after the delay finishes and all other dependencies finish.\n\n## Limits and failures\nThe runtime sleep API clamps a requested delay to 0–300,000 ms. The entire wait counts against the per-attempt node timeout; ensure that timeout is greater than the requested wait, allowing execution overhead. A retry repeats the wait from the beginning. Cancellation or host interruption does not preserve remaining sleep time or promise a later resume.\n\nAn absent optional value may disappear after serialization and cause a wired data consumer to skip; a next-only consumer can still follow the completed delay. No error route is declared. The body does no network I/O, secret access, logging or checkpoint writes. For periodic work, use a schedule/poll entry rather than keeping a worker asleep.",
    "tags": [
      "builtin",
      "node"
    ],
    "source": "app-builtin-catalog"
  }
}
