forest icon indicating copy to clipboard operation
forest copied to clipboard

Add names to Tokio tasks

Open elmattic opened this issue 2 years ago • 0 comments

Issue summary

Now that Forest is using tokio runtime we would like to improve debuggability thanks to naming tasks.

A proposal would be to prefix the name with the epoch at which the task is launched (or any other helpful information).

Some unique string should be used as well so it's easy to search for it in Forest codebase. Ie:

2478000-chkblkmsgs for this task.

Task summary

  • [ ] Identify all non-blocking and blocking tasks we have
  • [ ] Use the task builder API to build a task with a name

Acceptance Criteria

  • [ ] Make sure all tasks have a meaningful name using tokio-console

Other information and links

https://docs.rs/tokio/1.23.0/tokio/task/struct.Builder.html

elmattic avatar Jan 02 '23 15:01 elmattic