> ## Documentation Index
> Fetch the complete documentation index at: https://aspect.build/llms.txt
> Use this file to discover all available pages before exploring further.

# Run

`function` **Run.status**

<pre language="python">
  `def Run.status() -> bazel.build.BuildStatus`
</pre>

Block until the build finishes and return its `BuildStatus`. The process, if it was spawned, keeps running.

`function` **Run.wait**

<pre language="python">
  `def Run.wait() -> std.process.ExitStatus`
</pre>

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**

<pre language="python">
  `Run.cancellation: cancellation.Token`
</pre>

The build's cancellation token: cancelling it interrupts Bazel. The process has its own, the one passed as `cancellation =`.

`property` **Run.child**

<pre language="python">
  `Run.child: Future[std.process.Child]`
</pre>

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**

<pre language="python">
  `Run.label: str`
</pre>

The target, as it was asked for.

`property` **Run.runnable**

<pre language="python">
  `Run.runnable: Future[bazel.run.Runnable]`
</pre>

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**

<pre language="python">
  `Run.sink_invocation_id: str`
</pre>

The invocation id every gRPC BES sink filed this build under, or `""` without sinks. As on `bazel.build.Build`.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.