-
Notifications
You must be signed in to change notification settings - Fork 104
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
[BUG] Logging not working from other threads #1158
Comments
Thanks for reporting we will discuss this feature issue and update you on the inputs soon. |
@bhagyshricompany Any update on this? |
@Qmatteo we have looked and identified the cause, within python function worker there is a managed threadpoolexecutor which wraps cx's sync function by assigning function invocation id to thread_local. This does not apply to cx managed threadpoolexecutor and thread without function invocation id assigned will not be logged
we are working on the fix and will let you know |
@YunchuWang how long do you think it will take to fix the problem? |
@vrdmr please comment on this |
Hi, a potential fix is currently under review. Thank you for your patience, and we will keep you updated on this. |
@EvanR-Dev ok. Any ideas on the timeline? |
I understand. It will be merged by the end of this week and part of the next release. The release will take time as we are doing hot fixes and could take by the end of March by the time it is finally out. We thank you for your patience once again. |
has this fix been released? |
This fix will be released with runtime version 4.19. ETA mid-April |
Hi @gavin-aguiar , how can we track when the 4.19 is going live? |
@Marco-Santoni 4.19 is already deployed for dedicated plan in all regions. Consumption plan deployment has started and should be done in a week. |
|
Investigative information
Python version: 3.9.10
Core Tools Version: 4.0.4915
Function Runtime Version: 4.14.0.19631
Repro steps
dispatch a function that uses logging to a background thread
Expected behavior
The logged text appears in the logs
Actual behavior
The text isn't logged
Example:
When I trigger this, In the console I can see "foo completed" but not "Hello from foo".
Contents of the requirements.txt file:
azure-functions==1.12.0
The text was updated successfully, but these errors were encountered: