Skip to content
Merged
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
10 changes: 5 additions & 5 deletions instill/clients/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,15 +66,15 @@ def __init__(
"Instill Artifact is not serving, Artifact functionalities will not work"
)

self.app_service = AppClient(
self.app = AppClient(
api_token=api_token,
url=url,
secure=secure,
lookup_func=self._lookup_namespace_uid,
requester_id=requester_id,
async_enabled=async_enabled,
)
if not self.app_service.is_serving():
if not self.app.is_serving():
Logger.w("Instill App is not serving, App functionalities will not work")

def _lookup_namespace_uid(self, namespace_id: str):
Expand All @@ -96,14 +96,14 @@ def close(self):
self.pipeline.close()
self.model.close()
self.artifact.close()
self.app_service.close()
self.app.close()

async def async_close(self):
self.mgmt.async_close()
self.pipeline.async_close()
self.model.async_close()
self.artifact.async_close()
self.app_service.async_close()
self.app.async_close()

def get_mgmt(self) -> MgmtClient:
return self.mgmt
Expand All @@ -118,7 +118,7 @@ def get_model(self) -> ModelClient:
return self.model

def get_app(self) -> AppClient:
return self.app_service
return self.app


def init_core_client(
Expand Down
Loading