Skip to content

Commit 841d8f6

Browse files
committed
fix: LMAO web api
1 parent 8278a6b commit 841d8f6

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

module_wrapper_global.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -242,9 +242,11 @@ def process_request(self, request_response: request_response_container.RequestRe
242242
Raises:
243243
Exception: process state / status or any other error
244244
"""
245-
# Set PID for is_busy() function
245+
# Set PID for is_busy() function and current container
246+
pid = multiprocessing.current_process().pid
246247
with self._pid_value.get_lock():
247-
self._pid_value.value = multiprocessing.current_process().pid
248+
self._pid_value.value = pid
249+
request_response.pid = pid
248250

249251
# Extract user's language
250252
user_id = request_response.user_id

0 commit comments

Comments
 (0)