Skip to main content
function Build.execution_logs
def Build.execution_logs() -> typing.Iterable[exec_log_entry]
function Build.try_wait
def Build.try_wait() -> None | bazel.build.BuildStatus
function Build.wait
def Build.wait() -> bazel.build.BuildStatus
Block until the Bazel invocation finishes and return a BuildStatus. After wait() returns, the execution log pipe has been closed and the producer thread has exited. Calling execution_logs() after wait() will fail — the stream is consumed as part of the wait. Iterate execution_logs() before calling wait() if you need to process entries. build_events() remains usable after wait() for replaying historical events, because the build event stream retains its buffer. function Build.workspace_events
def Build.workspace_events() -> typing.Iterable[workspace_event]