mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-03 18:00:36 +00:00
fix: add missing shutdown methods to PromptServiceImpl and ConversationServiceImpl (#3925)
Change is visible in server shutdown logs, changes `WARNING` loglines to `INFO` Signed-off-by: Nathan Weinberg <nweinber@redhat.com>
This commit is contained in:
parent
a9b00db421
commit
b6954c9882
2 changed files with 6 additions and 0 deletions
|
|
@ -312,3 +312,6 @@ class ConversationServiceImpl(Conversations):
|
||||||
|
|
||||||
logger.debug(f"Deleted item {item_id} from conversation {conversation_id}")
|
logger.debug(f"Deleted item {item_id} from conversation {conversation_id}")
|
||||||
return ConversationItemDeletedResource(id=item_id)
|
return ConversationItemDeletedResource(id=item_id)
|
||||||
|
|
||||||
|
async def shutdown(self) -> None:
|
||||||
|
pass
|
||||||
|
|
|
||||||
|
|
@ -230,3 +230,6 @@ class PromptServiceImpl(Prompts):
|
||||||
await self.kvstore.set(default_key, str(version))
|
await self.kvstore.set(default_key, str(version))
|
||||||
|
|
||||||
return self._deserialize_prompt(data)
|
return self._deserialize_prompt(data)
|
||||||
|
|
||||||
|
async def shutdown(self) -> None:
|
||||||
|
pass
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue