Problems with runtime logger in parallel tasks #2617
Nathan-Intergral
started this conversation in
General
Replies: 1 comment 6 replies
-
You are correct there is only one logger. We are switching to different initialization method so the same logger will be used across all threads rather than creating a new logger in the |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey all,
I am having some trouble with the runtime logger not working as expected when running several of them in parallel in my application.
The problem I am seeing is that all of the .db files are created correctly to start with but only one of them ends up with the chat completions table populated at the end.
I noticed that the
runtime_logging.py
file initialises the logger in to a global variable as shown below:I believe this may be the issue? This means that only a single instance of the logger will be callable at one time as the autogen_logger variable will be overwritten each time the logger is initialised.
Thanks in advance for your cooperation.
Beta Was this translation helpful? Give feedback.
All reactions