apiVersion: argoproj.io/v1alpha1
kind: WorkflowTemplate
metadata:
  name: timed-wait
  labels:
    dagweave.io/catalog-item: timed-wait
  annotations:
    # The catalog semver this manifest was authored at. The dagweave app records
    # (catalog-item-id, semver) -> content-hash -> base-vN when it mints the tenant
    # cluster name via ResolveOrMint. Keep in sync with metadata.yaml `version`.
    dagweave.io/catalog-version: "1.0.0"
    dagweave.io/catalog-category: "Approval"
spec:
  entrypoint: wait
  templates:
    - name: wait
      inputs:
        parameters:
          # How long to pause. Accepts an Argo duration string: a bare number of
          # seconds ("300") or a unit-suffixed value ("30s", "10m", "1h", "2h30m").
          - name: duration
            default: "1h"
      # A suspend node with a duration resumes automatically once the duration
      # elapses (it can also be resumed early via the Argo UI / resume API). No image
      # or container runs — the node simply blocks downstream steps for the duration.
      suspend:
        duration: "{{inputs.parameters.duration}}"
