@@ -384,7 +384,7 @@ def load_function_metadata(self, function_app_directory, caller_info):
384
384
script_file_name )
385
385
386
386
self ._function_metadata_result = (
387
- self .index_functions (function_path )) \
387
+ self .index_functions (function_path , function_app_directory )) \
388
388
if os .path .exists (function_path ) else None
389
389
390
390
async def _handle__functions_metadata_request (self , request ):
@@ -439,7 +439,7 @@ async def _handle__function_load_request(self, request):
439
439
440
440
logger .info (
441
441
'Received WorkerLoadRequest, request ID %s, function_id: %s,'
442
- 'function_name: %s, function_app_directory: %s' ,
442
+ 'function_name: %s, function_app_directory : %s' ,
443
443
self .request_id , function_id , function_name ,
444
444
function_app_directory )
445
445
@@ -750,7 +750,7 @@ async def _handle__function_environment_reload_request(self, request):
750
750
request_id = self .request_id ,
751
751
function_environment_reload_response = failure_response )
752
752
753
- def index_functions (self , function_path : str ):
753
+ def index_functions (self , function_path : str , function_dir : str ):
754
754
indexed_functions = loader .index_function_app (function_path )
755
755
logger .info (
756
756
"Indexed function app and found %s functions" ,
@@ -761,7 +761,8 @@ def index_functions(self, function_path: str):
761
761
fx_metadata_results , fx_bindings_logs = (
762
762
loader .process_indexed_function (
763
763
self ._functions ,
764
- indexed_functions ))
764
+ indexed_functions ,
765
+ function_dir ))
765
766
766
767
indexed_function_logs : List [str ] = []
767
768
indexed_function_bindings_logs = []
0 commit comments