Open zli11010 opened 1 week ago
OK I fixed the bug by unindent lines 234-235 in agentops/session.py
. Because they try to acquire a lock, putting them under the with self.lock
block causes a deadlock.
OK I fixed the bug by unindent lines 234-235 in
agentops/session.py
. Because they try to acquire a lock, putting them under thewith self.lock
block causes a deadlock.
Thanks for pointing this out! Will try to get a patch in ASAP.
Out of curiosity-- what kind of agent are you using that records more than 100 actions simultaneously?
Contact Details
No response
π¦ Package Version
0.3.13
ποΈ Framework Version
No response
π Describe the Bug
Calling
agentops.record
100 or more times in a program causes it to hang, and it seems consistent. It appears to be a deadlock at line 303 ofagentops/session.py
. Example program reproducing the bug:Changing
N
to a larger number similarly causes the program to hang, but ifN
is smaller (such as 99) then the program no longer hangs. It appears to be related toself.max_queue_size = 100
at line 13 ofagentops/config.py
.π€ Contribution