Skip to content

I want to enable tokio-console when receive some signal #633

@ningmingxiao

Description

@ningmingxiao

What crate(s) in this repo are involved in the problem?

No response

What is the issue?

I can't use tokio-console to get any task and resource.

async fn handle_signals(signals: Signals) {
    let mut signals = signals.fuse();
    while let Some(sig) = signals.next().await {
        match sig {
            SIGPIPE => {}
            SIGTERM | SIGINT => {
                debug!("received {}", sig);
                console_subscriber::init();
            }
Image

How can the bug be reproduced?

async fn handle_signals(signals: Signals) {
    let mut signals = signals.fuse();
    while let Some(sig) = signals.next().await {
        match sig {
            SIGPIPE => {}
            SIGTERM | SIGINT => {
                debug!("received {}", sig);
                console_subscriber::init();
            }

Logs, error output, etc

no

Versions

newest

Possible solution

No response

Additional context

No response

Would you like to work on fixing this bug?

yes

Metadata

Metadata

Assignees

No one assigned

    Labels

    S-bugSeverity: bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions