Skip to main content
Use a log callback when the client should display build progress immediately:
from nullspace import Template, default_build_logger

build = Template.build(
    builder,
    name="my-template",
    tags=["stable"],
    on_log_entry=default_build_logger(),
)
Reconnect to a background build by ID:
from nullspace import TemplateBuild

build = TemplateBuild.connect("tb_...")
status = build.get_status(offset=0)
for entry in status.entries:
    print(entry.kind, entry.message)
print(status.next_offset)
Save status.next_offset after each poll and pass it to the next get_status() or wait_until_terminal() call to fetch only new entries.

CLI

nullspace template build-status tb_...
nullspace template build-status tb_... --offset 10
nullspace template logs tb_...
nullspace template wait tb_... --offset 10 --poll-interval-ms 500 --log-format jsonl