rebase.Run

Inspect a submitted function, workflow, or model run.

Constructor

rb.Run(run_id: str)

Most users receive a Run from function.spawn(...), workflow.spawn(...), model.predict.run(...), or similar SDK calls.

Attributes

AttributeTypeDescription
idstrRun ID.
statusstrCurrent run status. Refreshes the run when no local data is loaded.
datadictLast loaded run payload.

Methods

run.refresh() -> dict[str, Any]
run.events() -> list[dict[str, Any]]
run.steps() -> list[dict[str, Any]]
run.result(timeout: int = 600, poll_interval: float = 5.0) -> dict[str, Any]
MethodDescription
refresh()Reload run metadata from the Rebase API.
events()Return persisted run events.
steps()Return workflow step state for workflow runs.
result(timeout=600, poll_interval=5.0)Wait for the run to finish and return the result. Raises if the run fails, is cancelled, or times out.

On this page