Open foreverbell opened 6 years ago
It is wrong to use threading in tornado. See http://www.tornadoweb.org/en/stable/locks.html
threading
lock in oasis/oasis.py.
lock
oasis/oasis.py
https://github.com/pingcap/oasis/blob/master/oasis/oasis.py#L21
We should use tonardo.locks.Event instead of threading.{Timer, Event} here. https://github.com/pingcap/oasis/blob/master/oasis/models/iforest.py#L31
tonardo.locks.Event
threading.{Timer, Event}
Thinks, I will fix it.
It is wrong to use
threading
in tornado. See http://www.tornadoweb.org/en/stable/locks.htmllock
inoasis/oasis.py
.https://github.com/pingcap/oasis/blob/master/oasis/oasis.py#L21
We should use
tonardo.locks.Event
instead ofthreading.{Timer, Event}
here. https://github.com/pingcap/oasis/blob/master/oasis/models/iforest.py#L31