File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -307,6 +307,7 @@ async def _process_task_streaming( # pylint: disable=too-many-locals
307307 no_tools = False ,
308308 generate_topic_summary = True ,
309309 media_type = None ,
310+ vector_store_ids = None ,
310311 )
311312
312313 # Get LLM client and select model
Original file line number Diff line number Diff line change 1717from configuration import configuration
1818from log import get_logger
1919from models .responses import InternalServerErrorResponse
20+ from a2a_storage import A2AStorageFactory
2021from utils .common import register_mcp_servers_async
2122from utils .llama_stack_version import check_llama_stack_version
2223
@@ -53,6 +54,10 @@ async def lifespan(_app: FastAPI) -> AsyncIterator[None]:
5354
5455 yield
5556
57+ # Cleanup resources on shutdown
58+ await A2AStorageFactory .cleanup ()
59+ logger .info ("App shutdown complete" )
60+
5661
5762app = FastAPI (
5863 title = f"{ service_name } service - OpenAPI" ,
Original file line number Diff line number Diff line change @@ -520,6 +520,10 @@ def test_dump_configuration_with_quota_limiters(tmp_path: Path) -> None:
520520 },
521521 "enable_token_history" : True ,
522522 },
523+ "a2a_state" : {
524+ "sqlite" : None ,
525+ "postgres" : None ,
526+ },
523527 }
524528
525529
@@ -627,6 +631,7 @@ def test_dump_configuration_with_quota_limiters_different_values(
627631 "service" : {
628632 "host" : "localhost" ,
629633 "port" : 8080 ,
634+ "base_url" : None ,
630635 "auth_enabled" : False ,
631636 "workers" : 1 ,
632637 "color_log" : True ,
@@ -919,6 +924,10 @@ def test_dump_configuration_byok(tmp_path: Path) -> None:
919924 },
920925 "enable_token_history" : False ,
921926 },
927+ "a2a_state" : {
928+ "sqlite" : None ,
929+ "postgres" : None ,
930+ },
922931 }
923932
924933
@@ -1001,6 +1010,7 @@ def test_dump_configuration_pg_namespace(tmp_path: Path) -> None:
10011010 "service" : {
10021011 "host" : "localhost" ,
10031012 "port" : 8080 ,
1013+ "base_url" : None ,
10041014 "auth_enabled" : False ,
10051015 "workers" : 1 ,
10061016 "color_log" : True ,
You can’t perform that action at this time.
0 commit comments