[Async-sig] Debugging destroyed, pending tasks

Yury Selivanov yselivanov at gmail.com
Thu Feb 2 14:53:03 EST 2017


> On Feb 2, 2017, at 2:40 PM, Mark E. Haase <mehaase at gmail.com> wrote:
> 
> Is it possible to see where this task was created, e.g. the line containing asyncio.ensure_future(asyncio.sleep(...)) ? If not, is this a capability that could be added to debug mode? E.g. ensure_future would add its own stack trace to the task object so that it could be retrieved later when a pending task is destroyed.
> 

Yeah, this is doable. I suggest you to open an issue on bugs.python.org.

Yury


More information about the Async-sig mailing list