Skip to content

Commit d991d68

Browse files
committed
backport context fix to v1
1 parent 1823723 commit d991d68

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

eng/templates/official/jobs/publish-library-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ jobs:
7474
branchName: '$(BranchName)'
7575
allowPartiallySucceededBuilds: true
7676
allowFailedBuilds: true
77-
targetPath: '$(Pipeline.Workspace)/PythonWorkerArtifact'
77+
targetPath: 'PythonWorkerArtifact'
7878
- task: UsePythonVersion@0
7979
displayName: 'Use Python 3.13'
8080
inputs:

runtimes/v1/azure_functions_runtime_v1/bindings/context.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99
from .tracecontext import TraceContext
1010

1111

12+
_invocation_id_local = threading.local()
13+
14+
1215
class Context:
1316
def __init__(self,
1417
func_name: str,
@@ -66,4 +69,4 @@ def get_context(invoc_request, name: str,
6669

6770
return Context(
6871
name, directory, invoc_request.invocation_id,
69-
threading.local(), trace_context, retry_context)
72+
_invocation_id_local, trace_context, retry_context)

0 commit comments

Comments
 (0)