Weles/Docs

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#

Usage
weles tasks await <task-id> (--consumer <consumer> | --endpoint <url>) --role <role> [--json]

Options#

Options of weles tasks await
OptionEffect
--consumertasks: the Stado consumer the caller is; the API is the route 'stado service directory connect weles-admission --consumer <consumer>' gives.
--endpointtasks: the public task API's address instead of a consumer's route.
--roletasks: the vault role whose item holds the bearer (token) and, for cancel, the organization (organization_id) the API admits.
--jsonPrint 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.