Skip to main content
function History.get
def History.get(
id: str,
/
) -> typing.Any
The record of the run with task ID id (or whose entry’s folder is named id), as list gives it; None when it is not kept. function History.link
def History.link(
label: str,
url: str,
/
) -> None
Add a link to this run’s record: a results page, say, which a history list then shows. A link already there is not added twice. function History.list
def History.list(
*,
limit: int = 50,
kind: None | str = None,
outcome: None | str = None,
branch: None | str = None
) -> list
The records of past runs, newest first: at most limit of them, only those of task kind, those that ended outcome (ok, failed, error, cancelled, running, abandoned), and those run on git branch, when given. Each is a dict, as task.json has it, its command line redacted, with dir (the entry’s folder), outcome, and each build’s build_events (its kept stream, for bazel.build_events.read) where its folder has one. This run’s own record is among them, running. function History.root
def History.root() -> str
The folder the history is kept in.