Skip to content

feat(toolkit): task dumps in recipes, bugfixes#380

Merged
jlizen merged 5 commits into
dial9-rs:mainfrom
jlizen:feat/task-dumps-in-toolkit
May 8, 2026
Merged

feat(toolkit): task dumps in recipes, bugfixes#380
jlizen merged 5 commits into
dial9-rs:mainfrom
jlizen:feat/task-dumps-in-toolkit

Conversation

@jlizen
Copy link
Copy Markdown
Member

@jlizen jlizen commented May 8, 2026

Adding a recipe to our agents toolkit for "what is a task waiting on?".

In the process I noticed some bugs, and also that our CI wasn't properly running our "check snippets" test. That would catch this sort of regression in the future.


## What is a task waiting on? (task dumps)

Task dumps capture async backtraces at yield points. Use them to see what futures a task is `await`ing during idle periods.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are some surprising details about the timestamps, namely that they have the same pollstart as the poll that they follow

I'm not sure if the tooling just fully handles that for you or if agents will run into it

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point, i'll make it show the right thing out of box

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah my new changes work fine:

    ╰ working_dir=/workplace/jlizen/dial9-tokio-telemetry
    Task 3 (examples/metrics-service/src/main.rs:220:14) idle 0.3ms awaiting: &mut F::poll
    future.rs:121
    Task 3 (examples/metrics-service/src/main.rs:220:14) idle 0.3ms awaiting:
    registration::Registration::poll_ready registration.rs:149
    Task 3 (examples/metrics-service/src/main.rs:220:14) idle 0.3ms awaiting:
    registration::Registration::poll_ready registration.rs:149
    Task 3 (examples/metrics-service/src/main.rs:220:14) idle 0.3ms awaiting: Sleep::poll
    sleep.rs:464
    Task 3 (examples/metrics-service/src/main.rs:220:14) idle 206.7ms awaiting: &mut F::poll
    future.rs:121
    ...+11 lines (ctrl+o to toggle)

@jlizen jlizen enabled auto-merge May 8, 2026 22:05
@jlizen jlizen added this pull request to the merge queue May 8, 2026
Merged via the queue into dial9-rs:main with commit b223cc5 May 8, 2026
20 checks passed
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.

2 participants