Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions burr/tracking/server/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
IndexingBackendMixin,
SnapshottingBackendMixin,
)
from burr.tracking.server import workspace

setup_logging(logging.INFO)

Expand Down Expand Up @@ -137,6 +138,7 @@ async def lifespan(app: FastAPI):
global initialized
initialized = True
yield
await workspace.cleanup_processes()
await backend.lifespan(app).__anext__()


Expand All @@ -151,6 +153,7 @@ def _get_app_spec() -> BackendSpec:
snapshotting=is_snapshotting_backend,
supports_demos=supports_demos,
supports_annotations=is_annotations_backend,
supports_workspace=True,
)


Expand Down Expand Up @@ -342,6 +345,7 @@ async def version() -> dict:
burr_version = "unknown"
return {"version": burr_version}

ui_app.include_router(workspace.router, prefix="/api/v0/workspace")
# Examples -- todo -- put them behind `if` statements
ui_app.include_router(chatbot.router, prefix="/api/v0/chatbot")
ui_app.include_router(email_assistant.router, prefix="/api/v0/email_assistant")
Expand Down
1 change: 1 addition & 0 deletions burr/tracking/server/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,7 @@ class BackendSpec(pydantic.BaseModel):
snapshotting: bool
supports_demos: bool
supports_annotations: bool
supports_workspace: bool


class AnnotationDataPointer(pydantic.BaseModel):
Expand Down
Loading
Loading