From 69c6ccc5581fff56501b0b83e0734846fe3ab394 Mon Sep 17 00:00:00 2001 From: Varad Date: Thu, 18 Nov 2021 19:09:27 -0800 Subject: [PATCH] Reflecting new protobuf changes --- azure_functions_worker/dispatcher.py | 6 +++--- python/test/worker.config.json | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/azure_functions_worker/dispatcher.py b/azure_functions_worker/dispatcher.py index b82fd891c..99fc2909d 100644 --- a/azure_functions_worker/dispatcher.py +++ b/azure_functions_worker/dispatcher.py @@ -301,7 +301,7 @@ async def _handle__worker_status_request(self, req): async def _handle__functions_metadata_request(self, req): metadata_request = req.functions_metadata_request - directory = metadata_request.directory + directory = metadata_request.function_app_directory indexed_functions = loader.index_function_app(directory) x = [] @@ -331,8 +331,8 @@ async def _handle__functions_metadata_request(self, req): return protos.StreamingMessage( request_id=req.request_id, function_metadata_responses=protos.FunctionMetadataResponses( - results=x, - overall_status=protos.StatusResult( + function_load_requests_results=x, + result=protos.StatusResult( status=protos.StatusResult.Success))) async def _handle__function_load_request(self, req): diff --git a/python/test/worker.config.json b/python/test/worker.config.json index 0dce1d579..3fc2a9236 100644 --- a/python/test/worker.config.json +++ b/python/test/worker.config.json @@ -4,6 +4,6 @@ "extensions":[".py"], "defaultExecutablePath":"python", "defaultWorkerPath":"worker.py", - "workerIndexing": true + "workerIndexing": "true" } }