Skip to content

Commit 6312e23

Browse files
committed
Update _close_session docstring to clarify usage and shutdown behavior
1 parent 7c76ff7 commit 6312e23

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

azure/durable_functions/models/utils/http_utils.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,9 @@ async def _handle_request_error():
6363
async def _close_session() -> None:
6464
"""Close the shared ClientSession if it exists.
6565
66-
This function should be called during worker shutdown.
66+
Note: This function is currently only called by _handle_request_error().
67+
There is no worker shutdown hook available, but process shutdown will
68+
clean up all resources automatically.
6769
"""
6870
global _client_session
6971

0 commit comments

Comments
 (0)