Skip to content
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

TIDs are not reused by foreign threads in language modules #4331

Closed
davidnich opened this issue Oct 13, 2021 · 0 comments
Closed

TIDs are not reused by foreign threads in language modules #4331

davidnich opened this issue Oct 13, 2021 · 0 comments

Comments

@davidnich
Copy link
Contributor

this leads to situations like the following (all of the following lines are from the same Python thread):

2021-10-12 16:30:36.655795 hq.qoretechnologies.com:788916 T7 [WARN]: {message: "using intent handlers list [IntentCallbackAssignor(intent_pattern='Default Fallback Intent', handlers=[<bound method QorusBpiServer.handle_default_fallback of <__main__.QorusBpiServer object at 0x7f8e173d4910>>]), IntentCallbackAssignor(intent_pattern='Default Welcome Intent', handlers=[<bound method QorusBpiServer.handle_default_fallback of <__main__.QorusBpiServer object at 0x7f8e173d4910>>]), IntentCallbackAssignor(intent_pattern='Default Exit Intent', handlers=[<function QorusBpiServer.handle_default_exit at 0x7f8e149547d0>]), IntentCallbackAssignor(intent_pattern='i.my_handled_intent', handlers=[<bound method QorusBpiServer.reformat_text_in_intent of <__main__.QorusBpiServer object at 0x7f8e173d4910>>])]", content: [{<IntentCallbackAssignor object>}, {<IntentCallbackAssignor object>}, {<IntentCallbackAssignor object>}, {<IntentCallbackAssignor object>}]}
login request handled by bpi
2021-10-12 16:30:45.680241 hq.qoretechnologies.com:788916 T8 [INFO]: BPI: INFO:console:login request handled by bpi
{'message': 'CAI-DetectIntentRequest to CAI, text input: Die ist einfach, das ist 654789', 'content': 'Die ist einfach, das ist 654789', 'text': 'Die ist einfach, das ist 654789', 'tags': ['text']}
2021-10-12 16:30:45.685716 hq.qoretechnologies.com:788916 T9 [WARN]: BPI: WARNING:console:{'message': 'CAI-DetectIntentRequest to CAI, text input: Die ist einfach, das ist 654789', 'content': 'Die ist einfach, das ist 654789', 'text': 'Die ist einfach, das ist 654789', 'tags': ['text']}
{'message': "Starting 'perform_detect_intent' in thread 140247969023744."}
2021-10-12 16:30:45.687166 hq.qoretechnologies.com:788916 T10 [WARN]: BPI: WARNING:console:{'message': "Starting 'perform_detect_intent' in thread 140247969023744."}
{'message': "Elapsed time: 0.3295 seconds. Finished 'perform_detect_intent' in thread 140247969023744.", 'duration': 0.3295495740021579, 'tags': ['timing']}
2021-10-12 16:30:46.018044 hq.qoretechnologies.com:788916 T11 [WARN]: BPI: WARNING:console:{'message': "Elapsed time: 0.3295 seconds. Finished 'perform_detect_intent' in thread 140247969023744.", 'duration': 0.3295495740021579, 'tags': ['timing']}
{'message': 'CAI-DetectIntentResponse from CAI, intent_name: Default Welcome Intent', 'content': 'Default Welcome Intent', 'intent_name': 'Default Welcome Intent', 'session_id': 'projects/02724364-f352-46a2-9279-083989c53360/agent/sessions/a0b110b5-ef08-474f-b077-cdff11622abf', 'tags': ['text']}
2021-10-12 16:30:46.019985 hq.qoretechnologies.com:788916 T12 [WARN]: BPI: WARNING:console:{'message': 'CAI-DetectIntentResponse from CAI, intent_name: Default Welcome Intent', 'content': 'Default Welcome Intent', 'intent_name': 'Default Welcome Intent', 'session_id': 'projects/02724364-f352-46a2-9279-083989c53360/agent/sessions/a0b110b5-ef08-474f-b077-cdff11622abf', 'tags': ['text']}
@davidnich davidnich added this to the 1.0.10 milestone Oct 13, 2021
@davidnich davidnich self-assigned this Oct 13, 2021
@davidnich davidnich added this to To do in Qore Development via automation Oct 13, 2021
@davidnich davidnich changed the title TIDs cannot be reused in language modules TIDs are not reused by foreign threads in language modules Oct 13, 2021
davidnich added a commit that referenced this issue Oct 13, 2021
…o provide TID affinity between Qore threads and Java/Python threads
Qore Development automation moved this from To do to Done Oct 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

No branches or pull requests

1 participant