Skip to navigation
ReferenceAPIPython Library Reference

Service

View as Markdown

module nemo_fabric.service

Long-lived service lifecycle support for the NeMo Fabric Python SDK.


class ServiceStatus

Lifecycle state of a prepared or attached service.

Inheritance

Direct bases: str, Enum.

Values

The enum defines the following values:

NameValue
ACTIVEactive
RELEASINGreleasing
RELEASEDreleased
FAILEDfailed

class Service

One prepared or attached long-lived adapter service.

Create services with Fabric.prepare_service() or Fabric.attach_service(). Use the object as an asynchronous context manager to guarantee release or detach.


property handle

Return a detached snapshot of the service handle.


property service_id

Return the unique identifier for this process-local service.


property status

Return the current service lifecycle state.


method release

async def release() -> None

Stop an owned service or detach from a caller-owned service.

Release fails while active runtimes still reference the service. Repeated calls after a successful release are no-ops.


This file was automatically generated via lazydocs.