# Wait

> Pauses the run for a while, or until a date.

Source: https://docs.go-lumen.ai/es/reference/nodes/wait

## De un vistazo

| Propiedad | Valor |
| --- | --- |
| **Node field** | `wait` (set instead of `stepRef` on a FlowNode) |
| **Side effects** | no |

A FlowNode sets exactly one of `stepRef`, `branch`, `filter`, `forEach`, `wait` and `approval`.

## Ajustes

El valor del campo del nodo, con estos ajustes.

| Ajuste | Tipo | Valor por defecto | Descripción |
| --- | --- | --- | --- |
| `for` | string |  | For is how long to wait, e.g. 30m or 48h. (pattern \`^(\[0-9\]+(\\.\[0-9\]+)?(ns|us|µs|ms|s|m|h))+$\`) |
| `until` | string |  | Until is an RFC 3339 time, or a <nodeId>.<field> reference to an upstream date field. |

El JSON Schema completo de estos ajustes: [wait.schema.json](https://docs.go-lumen.ai/schemas/nodes/wait.schema.json).

## Úsalo en un flujo

```yaml title="flow.yaml"
apiVersion: lumen.ai/v1alpha1
kind: Connector
metadata:
  name: my-email-forward
  namespace: tenant-acme
spec:
  classRef: {name: email-forward}
  config: {}
---
apiVersion: lumen.ai/v1alpha1
kind: Flow
metadata:
  name: wait-example
  namespace: tenant-acme
spec:
  displayName: "Wait"
  triggers:
    - id: start
      ref: {name: email-arrives}
      connectorRef: {name: my-email-forward}
      next: [text]
  nodes:
    - id: text
      stepRef: {name: read-text}
      next: [pause]
    - id: pause
      wait: {for: 48h}
      next: [remind]
    - id: remind
      stepRef: {name: notify-in-app}
      config:
        to: admins
        title: Two days passed
        body: Has the invoice been paid?
```
