Read a command started with async
briq_exec_resultWhere a command started with briq_exec async stands: running, exited (with its exit code), timed_out, stopped or lost, with the last 64 KB of its stdout and stderr. Waits up to waitMs (30 s by default, 45 s at most) for it to finish before answering, so call it again while it runs. The whole output is in the briq: briq_files_get the path it names. To follow a stream of output (events, a log) without missing or repeating a line, pass offset (0 first): you get the output from that byte, and the offset to pass next; the wait then ends as soon as there is new output.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| briq | Yes | ||
| exec | Yes | exec id (ex_…), from briq_exec | |
| offset | No | Read from this byte of the stream instead of its tail: 0 first, then the next offset each answer gives | |
| stream | No | The stream offset reads; stdout by default | |
| waitMs | No | How long to wait for it to finish, or with offset for new output; 30000 by default | |
| maxBytes | No | With offset: the most to read in one call; 32768 by default |