Skip to content

nodus wait

View Markdown

Wait until a resource meets a condition

nodus wait KIND/NAME --for=condition=C|jsonpath='{...}'=VALUE|delete [flags]
nodus wait job/x --for=jsonpath='{.status.phase}'=Succeeded --timeout 1h
--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)
--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)
  • nodus - Run compute Jobs on Nodus

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

Terminal window
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