It wasn't documented (well) in Python 3.6 but the event loop keeps track of Tasks using a weakref.WeakSet. Theoretically this can cause tasks to mysteriously disappear during garbage collection.
So, special measures need to be taken to keep a regular reference to the task around while a request is being serviced.
It wasn't documented (well) in Python 3.6 but the event loop keeps track of Tasks using a
weakref.WeakSet
. Theoretically this can cause tasks to mysteriously disappear during garbage collection.So, special measures need to be taken to keep a regular reference to the task around while a request is being serviced.
Affected items are:
agent.py
rearview/db.py