Skip to content

gh-135371: Fix asyncio task awaited_by semantics in remote debugging #135372

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

pablogsal
Copy link
Member

@pablogsal pablogsal commented Jun 11, 2025

The awaited_by list in get_all_awaited_by() was incorrectly showing the
awaiter's call stack instead of the current task's call stack. This made
the output confusing and incorrect.

This change adds a new parse_current_task_with_awaiter() function that
correctly extracts the current task's own call stack (where it's
executing) and the awaiter's task ID (who is waiting for this task).

…gging

The awaited_by list in get_all_awaited_by() was incorrectly showing the
awaiter's call stack instead of the current task's call stack. This made
the output confusing and incorrect.

This change adds a new parse_current_task_with_awaiter() function that
correctly extracts the current task's own call stack (where it's
executing) and the awaiter's task ID (who is waiting for this task).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant