Skip to main content
function Run.status
def Run.status() -> bazel.build.BuildStatus
Block until the build finishes and return its BuildStatus. The process, if it was spawned, keeps running. function Run.wait
def Run.wait() -> std.process.ExitStatus
Block until the process exits and return its std.process.ExitStatus, then join the build. Raises the build errors runnable would. Takes child, so use one or the other. property Run.cancellation
Run.cancellation: cancellation.Token
The build’s cancellation token: cancelling it interrupts Bazel. The process has its own, the one passed as cancellation =. property Run.child
Run.child: Future[std.process.Child]
The target’s process, spawned the moment the target was ready. A std.process.Child: wait, try_wait, stdout, kill as usual. Fails the way runnable does when the target did not build. Handed out once; a second access is an error. property Run.label
Run.label: str
The target, as it was asked for. property Run.runnable
Run.runnable: Future[bazel.run.Runnable]
The built target, once it is built and its runfiles tree exists. Fails with bazel.run.BuildError, bazel.run.NotBuilt or bazel.run.NotRunnable. Each access is a new future over the same result. property Run.sink_invocation_id
Run.sink_invocation_id: str
The invocation id every gRPC BES sink filed this build under, or "" without sinks. As on bazel.build.Build.