@@ -122,6 +122,17 @@ def build_variable_interval_retry(retry, max_retry_count, retry_strategy):
122
122
123
123
def process_indexed_function (functions_registry : functions .Registry ,
124
124
indexed_functions ):
125
+ """
126
+ fx_metadata_results is a list of the RpcFunctionMetadata for
127
+ all the functions in the particular app.
128
+
129
+ fx_binding_logs represents a dictionary of each function in
130
+ the app and its corresponding bindings. The raw bindings and
131
+ binding logs are generated from the base extension if the
132
+ function is using deferred bindings. If not, the raw bindings
133
+ come from the azure-functions sdk and no additional binding
134
+ logs are generated.
135
+ """
125
136
fx_metadata_results = []
126
137
fx_bindings_logs = {}
127
138
for indexed_function in indexed_functions :
@@ -251,11 +262,19 @@ def get_fx_raw_bindings(indexed_function, function_info):
251
262
"""
252
263
If deferred bindings is enabled at the function level,
253
264
raw bindings are generated through the base extension.
265
+ This method returns two things: the raw bindings for that
266
+ function and a dict the corresponding logs.
267
+
268
+
254
269
If not, raw bindings are generated through azure-functions.
270
+ An empty dict is returned as we are not logging any
271
+ additional information if deferred bindings is not enabled
272
+ for this function.
255
273
"""
256
274
if function_info .deferred_bindings_enabled :
257
- return bindings .meta . DEFERRED_BINDING_REGISTRY . get_raw_bindings (
275
+ raw_bindings , bindings_logs = bindings .get_deferred_raw_bindings (
258
276
indexed_function , function_info .input_types )
277
+ return raw_bindings , bindings_logs
259
278
260
279
else :
261
280
return indexed_function .get_raw_bindings (), {}
0 commit comments