You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What crate(s) in this repo are involved in the problem?
Tokio-console and console-subscriber
What is the issue?
tokio-console has a mechanism to restart itself if it detects a new program has attached. For example: I'm running a.rs, and after that I decide to stop the process and run b.rs. Console will detect b.rs is a different process and will update the list of tasks to only show those of b.rs. However, not always does this detection work.
If a.rs and b.rs are using the #[tokio::main] macro to initialize the runtime, then detection works fine. However, if one is using #[tokio::main] macro, whereas the other is using tokio::runtime::Runtime::new() this detection does not take place. The result is tasks from a.rs gets mixed in with the ones from b.rs
How can the bug be reproduced?
As I described before, it can be reproduced with one program using the #[tokio::main] and the other using tokio::runtime::Runtime::new().
What crate(s) in this repo are involved in the problem?
Tokio-console and console-subscriber
What is the issue?
tokio-console has a mechanism to restart itself if it detects a new program has attached. For example: I'm running a.rs, and after that I decide to stop the process and run
b.rs
. Console will detectb.rs
is a different process and will update the list of tasks to only show those ofb.rs
. However, not always does this detection work.If
a.rs
andb.rs
are using the#[tokio::main]
macro to initialize the runtime, then detection works fine. However, if one is using#[tokio::main]
macro, whereas the other is usingtokio::runtime::Runtime::new()
this detection does not take place. The result is tasks froma.rs
gets mixed in with the ones fromb.rs
How can the bug be reproduced?
As I described before, it can be reproduced with one program using the
#[tokio::main]
and the other usingtokio::runtime::Runtime::new()
.Steps:
a.rs
tokio-console
a.rs
b.rs
a.rs
andb.rs
Program using
#[tokio::main]
macro (a.rs
)Program using
tokio::runtime::Runtime::new()
(b.rs
)Logs, error output, etc
No response
Versions
Possible solution
I don't know
Additional context
Would you like to work on fixing this bug?
yes
The text was updated successfully, but these errors were encountered: