CLI command
weles tasks await
Hold until one task ends (GET /api/v1/tasks/<id>?wait=terminal) and print it with its signed receipt; every refusal the API declares is raised as that cause.
Purpose#
Hold until one task ends (GET /api/v1/tasks/<id>?wait=terminal) and print it with its signed receipt; every refusal the API declares is raised as that cause.
Invocation#
weles tasks await <task-id> (--consumer <consumer> | --endpoint <url>) --role <role> [--json]Options#
| Option | Effect |
|---|---|
--consumer | tasks: the Stado consumer the caller is; the API is the route 'stado service directory connect weles-admission --consumer <consumer>' gives. |
--endpoint | tasks: the public task API's address instead of a consumer's route. |
--role | tasks: the vault role whose item holds the bearer (token) and, for cancel, the organization (organization_id) the API admits. |
--json | Print the answer as one JSON document instead of key: value lines. release surface always prints its JSON document: it is the file a release carries. |
Help#
`weles tasks await --help` prints these usage lines and never runs the command.