feat: V2 library worker#1667
Closed
hallvictoria wants to merge 49 commits intodevfrom
Closed
Conversation
…e/azure-functions-python-worker into hallvictoria/library-worker
hallvictoria
commented
Apr 15, 2025
| configure_opentelemetry(fi_context) | ||
|
|
||
| # Extensions are not supported | ||
| call_result = await execute_async(fi.func, args) |
Contributor
Author
There was a problem hiding this comment.
Extensions are not supported in 3.13+
hallvictoria
commented
Apr 15, 2025
| + str(indexed_function_bindings_logs)) | ||
| indexed_function_logs.append(function_log) | ||
|
|
||
| log_data = { |
Contributor
Author
There was a problem hiding this comment.
This formats the log into a JSON that we can easily parse in Kusto. We log the app setting state here alone -- this ensures that the app settings that are logged are accurate.
hallvictoria
commented
Apr 15, 2025
| import traceback | ||
|
|
||
| # Logging Prefixes | ||
| SDK_LOG_PREFIX = "azure.functions" |
Contributor
Author
There was a problem hiding this comment.
Todo: change log prefix?
hallvictoria
commented
Apr 15, 2025
| # Copyright (c) Microsoft Corporation. All rights reserved. | ||
| # Licensed under the MIT License. | ||
|
|
||
| import asyncio |
Contributor
Author
There was a problem hiding this comment.
Refactor: moved methods related to the loop & executing out from dispatcher.py
hallvictoria
commented
Apr 15, 2025
| @@ -49,31 +47,7 @@ extends: | |||
| - stage: Build | |||
| jobs: | |||
| - template: /eng/templates/official/jobs/build-artifacts.yml@self | |||
Contributor
Author
There was a problem hiding this comment.
There will be only unit tests for the library worker. E2E tests will remain in the proxy worker.
hallvictoria
commented
Apr 15, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
The library worker holds the main logic for responding to the host, indexing function apps, and executing functions.
Fixes #
PR information
Quality of Code and Contribution Guidelines