Skip to content

Adopt Py3.8+ features: Names for asyncio tasks #3733

@Bibo-Joshi

Description

@Bibo-Joshi

Python 3.8 adds a name argument to the function asyncio.create_task. This allows to give all tasks an interpretable name, which can help with debugging and also provides more transparency for users.
We should

  • revisit our code base to check all uses of asyncio.create_task and provide meaningful names
  • if possible, also extend the unit tests to assert that the name is set on the tasks. I'm not entirely sure if that's possible

A PR in this direction is very welcome. As long as #3728 is open, it should be based on the drop-py-37 branch. If you would like to send a PR, please be sure to read our contribution guide and leave a short comment so that we can assign you.

Metadata

Metadata

Assignees

Labels

Priority

None yet

Effort

None yet

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions