{
  "name": "rest-poll-until",
  "title": "Poll a URL until a condition holds",
  "category": "HTTP",
  "tags": [
    "curl-jq",
    "http"
  ],
  "version": "1.0.1",
  "date": "2026-08-02",
  "notes": "Swap the abandoned dwdraju/alpine-curl-jq, last built 2025-02-21, for badouralix/curl-jq, which is still being rebuilt. Fixable CRITICAL/HIGH drops from 19 to 1. Same Alpine base, same root user, same /bin/sh default command; curl goes 8.12.1 to 8.21.0 and jq 1.7.1 to 1.8.1.",
  "latest": false,
  "installable": false,
  "url": "https://catalog.dagweave.com/api/v1/items/rest-poll-until/1.0.1.json",
  "entrypoint": "poll",
  "parameters": [
    {
      "name": "jq-condition",
      "title": "jq condition",
      "description": "A jq boolean filter over the JSON response. When it evaluates truthy the poll succeeds.",
      "type": "string",
      "required": true,
      "example": ".status == \"complete\""
    },
    {
      "name": "url",
      "title": "URL",
      "description": "Absolute URL to poll (GET). Its JSON response is evaluated each attempt.",
      "type": "string",
      "required": true,
      "example": "https://api.example.com/jobs/123"
    },
    {
      "name": "interval-seconds",
      "title": "Interval (seconds)",
      "description": "Seconds to wait between attempts.",
      "type": "string",
      "required": false,
      "default": "10"
    },
    {
      "name": "max-attempts",
      "title": "Max attempts",
      "description": "Maximum number of attempts before failing.",
      "type": "string",
      "required": false,
      "default": "30"
    }
  ],
  "images": [
    {
      "ref": "badouralix/curl-jq@sha256:38362e9b8ef4bd09a88c0db07941e61e0bf0f7240e9f36a3ff2c31ad75546be2",
      "repository": "badouralix/curl-jq",
      "digest": "sha256:38362e9b8ef4bd09a88c0db07941e61e0bf0f7240e9f36a3ff2c31ad75546be2"
    }
  ],
  "source": "https://github.com/dagweave/catalog/tree/67458f74dbbf913b03177f3cefc69424be85eb1d/catalog/rest-poll-until",
  "catalogSha": "67458f74dbbf913b03177f3cefc69424be85eb1d"
}
