Skip to content

feat: V2 library worker #1667

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 39 commits into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
9ff0466
initial commit
hallvictoria Jan 24, 2025
cf747d6
lint + public build
hallvictoria Jan 27, 2025
e66218a
removed variables
hallvictoria Jan 27, 2025
6842770
default minor version
hallvictoria Jan 27, 2025
6b24266
fix pip audit
hallvictoria Jan 27, 2025
3f1a774
working official build
hallvictoria Jan 27, 2025
ecf4d99
working package compilation
Jan 29, 2025
67f1086
run pipelines for dev-3* branches
Jan 29, 2025
02a2504
updatge grpc versions
hallvictoria Jan 31, 2025
cf9b8a8
Merge branch 'hallvictoria/library-worker' of https://github.com/Azur…
hallvictoria Jan 31, 2025
a41ce2d
default pythonVersion
hallvictoria Jan 31, 2025
9e104c7
install azure-functions, mypy fix
hallvictoria Jan 31, 2025
327e0b6
mypy fixes
hallvictoria Jan 31, 2025
abbec6f
rename to azure-functions-runtime
hallvictoria Feb 6, 2025
e292f4a
adding tests
Feb 12, 2025
2038019
a17: rename to azure_functions_worker_v2
hallvictoria Feb 21, 2025
204bdbc
a21: remove old references to afw
hallvictoria Feb 24, 2025
a533f81
latest logs
hallvictoria Feb 25, 2025
64d5dcf
a23: change logs to GAVIN
Feb 26, 2025
2f494c7
a25: remove f-strings, python_requires>=313
Mar 12, 2025
cb83fcc
fix async timeouts
Mar 18, 2025
59ff0e0
a27: fix sync functions
Mar 18, 2025
9e34752
a38: working versions
Mar 28, 2025
1ed4007
a39: no changes, adding some testing attempts
hallvictoria Mar 28, 2025
4a0f6e7
a40: change logs to debug
Apr 9, 2025
fd8a133
lint (fails bc of test file -- to fix later)
hallvictoria Apr 9, 2025
1f58703
add support for cmbd, remove cache from worker
hallvictoria Apr 11, 2025
7f61b5e
merge in otel changes
hallvictoria Apr 11, 2025
0cee003
added logs in init, env reload, invoc
hallvictoria Apr 11, 2025
2a5657b
tests for init, env reload + lint
hallvictoria Apr 14, 2025
90c8cee
merge
Apr 15, 2025
31e81a9
lint fixes
Apr 15, 2025
ba328c5
fix build pipeline
hallvictoria Apr 18, 2025
250a7fd
a41: minor lint fixes
hallvictoria Apr 21, 2025
d902734
update branches for pipelines
Apr 22, 2025
904d8bb
official name & first version
hallvictoria Apr 23, 2025
15ce595
a2: update readme
hallvictoria Apr 23, 2025
f4c61cf
a3: fix otel set / get
hallvictoria Apr 23, 2025
cc3b5ce
merge fixes
hallvictoria May 1, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
7 changes: 0 additions & 7 deletions .artifactignore

This file was deleted.

102 changes: 0 additions & 102 deletions .ci/e2e_integration_test/start-e2e.ps1

This file was deleted.

2 changes: 1 addition & 1 deletion .coveragerc
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,4 @@ omit =
# Removing the imported libraries that might show up in this.
*/azure/functions/*
*/azure/*
*/azure_functions_worker/_thirdparty/*
*/azure_functions_worker_v2/_thirdparty/*
21 changes: 0 additions & 21 deletions .devcontainer/Dockerfile

This file was deleted.

57 changes: 0 additions & 57 deletions .devcontainer/devcontainer.json

This file was deleted.

7 changes: 3 additions & 4 deletions .flake8
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,9 @@
ignore = W503,E402,E731

exclude = .git, __pycache__, build, dist, .eggs, .github, .local, docs/,
Samples, azure_functions_worker/protos/, proxy_worker/protos/,
azure_functions_worker/_thirdparty/typing_inspect.py,
tests/unittests/test_typing_inspect.py,
tests/unittests/broken_functions/syntax_error/main.py,
Samples, azure_functions_worker_v2/protos/,
azure_functions_worker_v2/utils/typing_inspect.py,
tests/protos/,
.env*, .vscode, venv*, *.venv*

max-line-length = 88
4 changes: 2 additions & 2 deletions .github/linters/tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ exclude =
docs,
Samples,
__pycache__,
azure_functions_worker/protos/,
azure_functions_worker/_thirdparty/typing_inspect.py,
azure_functions_worker_v2/protos/,
azure_functions_worker_v2/_thirdparty/typing_inspect.py,
tests/unittests/test_typing_inspect.py,
.venv*,
.env*,
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
# VALIDATE_PYTHON_PYLINT: false # disable pylint, as we have not configure it
# VALIDATE_PYTHON_BLACK: false # same as above
PYTHON_FLAKE8_CONFIG_FILE: tox.ini
FILTER_REGEX_INCLUDE: azure_functions_worker/.*
FILTER_REGEX_INCLUDE: azure_functions_worker_v2/.*
FILTER_REGEX_EXCLUDE: tests/.*
DEFAULT_BRANCH: dev
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -131,3 +131,6 @@ prof/
tests/**/host.json
tests/**/bin
tests/**/extensions.csproj

# Protos
*pb2*
9 changes: 4 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,15 @@
|--------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| dev | [![Build Status](https://img.shields.io/azure-devops/build/azfunc/public/658/dev)](https://azfunc.visualstudio.com/public/_build/latest?definitionId=658&branchName=dev) | [![codecov](https://codecov.io/gh/Azure/azure-functions-python-worker/branch/dev/graph/badge.svg)](https://codecov.io/gh/Azure/azure-functions-python-worker) | [![Test Status](https://img.shields.io/azure-devops/build/azfunc/public/658/dev)](https://azfunc.visualstudio.com/public/_build/latest?definitionId=658&branchName=dev) |

Python support for Azure Functions is based on Python 3.8, 3.9, 3.10, 3.11, and 3.12 serverless hosting on Linux and the Functions 4.0 runtime.
Python support for Azure Functions is based on Python 3.13 serverless hosting on Linux and the Functions 4.0 runtime.

Here is the current status of Python in Azure Functions:

What are the supported Python versions?

| Azure Functions Runtime | Python 3.8 | Python 3.9 | Python 3.10 | Python 3.11 | Python 3.12 |
|----------------------------------|------------|------------|-------------|-------------|-------------|
| Azure Functions 3.0 (deprecated) | ✔ | ✔ | - | - | - |
| Azure Functions 4.0 | ✔ | ✔ | ✔ | ✔ | ✔ |
| Azure Functions Runtime | Python 3.13 |
|----------------------------------|-------------|
| Azure Functions 4.0 | ✔ |

For information about Azure Functions Runtime, please refer to [Azure Functions runtime versions overview](https://docs.microsoft.com/en-us/azure/azure-functions/functions-versions) page.

Expand Down
6 changes: 0 additions & 6 deletions azure_functions_worker/__main__.py

This file was deleted.

29 changes: 0 additions & 29 deletions azure_functions_worker/bindings/__init__.py

This file was deleted.

25 changes: 0 additions & 25 deletions azure_functions_worker/bindings/rpcexception.py

This file was deleted.

This file was deleted.

Loading