Wait¶
Usage¶
hswait[-h]ID[-n SEC][--info [-f FORMAT] | --status | --return]
Description¶
Wait for task to complete.
Poll the database periodically for the completion status of the task. Block until completed.
Optionally, print task metadata after completion.
Arguments¶
- ID
Unique task UUID.
Options¶
-n,--intervalSECTime in seconds to wait between polling (default: 5).
-i,--infoPrint task info after completion.
See
task infocommand.-f,--formatFORMATFormat task info ([normal], json, yaml).
--jsonFormat metadata output as JSON.
--yamlFormat metadata output as YAML.
-s,--statusPrint task exit status only.
-r,--returnUse exit status from task.