# nodus wait

> Wait until a resource meets a condition

Source: https://nodus-platform-site.pages.dev/docs/reference/cli/nodus_wait/
Build revision: 211ad9f836655b1c3a2668c4693e442471f28614

## nodus wait

Wait until a resource meets a condition

```plaintext
nodus wait KIND/NAME --for=condition=C|jsonpath='{...}'=VALUE|delete [flags]
```

### Examples

```plaintext
  nodus wait job/x --for=jsonpath='{.status.phase}'=Succeeded --timeout 1h
```

### Options

```plaintext
      --for string         condition=NAME[=STATUS], jsonpath='{.path}'=VALUE, or delete
  -h, --help               help for wait
      --timeout duration   Give up after this long (exit 124) (default 30m0s)
```

### Options inherited from parent commands

```plaintext
      --context string   Context from the config file to use
      --org string       Organization (selects the context for that org)
  -p, --project string   Project to work in
  -v, --verbose          Log each API request (never credentials)
```

### SEE ALSO

* [nodus](https://nodus-platform-site.pages.dev/docs/reference/cli/nodus/) - Run compute Jobs on Nodus

### Tested examples

These invocations run in CI against the CLI’s fake API.

Terminal window

```sh
nodus wait job/train --for=jsonpath={.status.phase}=Succeeded --timeout 1m
nodus wait job/train --for=condition=Scheduled
nodus wait job/train --for=jsonpath={.status.phase}=Running
```
