Build and print a tree of all pending tasks under `pid`.
(pid: int)
| 263 | |
| 264 | |
| 265 | def display_awaited_by_tasks_tree(pid: int) -> None: |
| 266 | """Build and print a tree of all pending tasks under `pid`.""" |
| 267 | |
| 268 | tasks = _get_awaited_by_tasks(pid) |
| 269 | try: |
| 270 | result = build_async_tree(tasks) |
| 271 | except CycleFoundException as e: |
| 272 | _print_cycle_exception(e) |
| 273 | sys.exit(1) |
| 274 | |
| 275 | for tree in result: |
| 276 | print("\n".join(tree)) |
nothing calls this directly
no test coverage detected
searching dependent graphs…