Skip to content

metrics: rename num_active_tasks to num_alive_tasks#6667

Merged
Darksonn merged 3 commits intomasterfrom
alice/alive_tasks_count
Jun 30, 2024
Merged

metrics: rename num_active_tasks to num_alive_tasks#6667
Darksonn merged 3 commits intomasterfrom
alice/alive_tasks_count

Conversation

@Darksonn
Copy link
Copy Markdown
Member

The word "active" is the opposite of "idle", but an "idle task" normally refers to a task that is alive but not currently able to make progress. However, idle tasks are included in this counter.

Instead of "active", I propose the name "alive".

@Darksonn Darksonn added A-tokio Area: The main tokio crate M-metrics Module: tokio/runtime/metrics labels Jun 30, 2024
@github-actions github-actions bot added R-loom-current-thread Run loom current-thread tests on this PR R-loom-multi-thread Run loom multi-thread tests on this PR R-loom-multi-thread-alt labels Jun 30, 2024
Copy link
Copy Markdown
Contributor

@hds hds left a comment

Choose a reason for hiding this comment

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

Name change makes sense. It's clearer this way.

@Darksonn Darksonn merged commit 68d0e3c into master Jun 30, 2024
@Darksonn Darksonn deleted the alice/alive_tasks_count branch June 30, 2024 13:02
This was referenced Jul 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-tokio Area: The main tokio crate M-metrics Module: tokio/runtime/metrics R-loom-current-thread Run loom current-thread tests on this PR R-loom-multi-thread Run loom multi-thread tests on this PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants