Skip to content

Revert "Add task_execution_time histogram (#56355)"#57844

Closed
alanwguo wants to merge 1 commit into
ray-project:masterfrom
alanwguo:revert-histograms
Closed

Revert "Add task_execution_time histogram (#56355)"#57844
alanwguo wants to merge 1 commit into
ray-project:masterfrom
alanwguo:revert-histograms

Conversation

@alanwguo

@alanwguo alanwguo commented Oct 17, 2025

Copy link
Copy Markdown
Contributor

This reverts commit b9b3361.

Thank you for contributing to Ray! 🚀
Please review the Ray Contribution Guide before opening a pull request.

⚠️ Remove these instructions before submitting your PR.

💡 Tip: Mark as draft if you want early feedback, or ready for review when it's complete.

Description

Revert histograms for a future refactor to remove locks and to abstract away histogram details.

Related issues

Additional information

@alanwguo alanwguo requested review from a team as code owners October 17, 2025 17:27

@gemini-code-assist gemini-code-assist Bot left a comment

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.

Code Review

This pull request reverts the addition of histogram-based metrics for task execution times and other related statistics. The changes correctly remove the histogram logic from dashboard panels, runtime metrics collection, and associated tests. My review confirms that the revert is mostly clean, but I've identified one piece of leftover code from the reverted feature that should be removed for code clarity.

Comment on lines +389 to +409
histogram_buckets_s = [
0.1,
0.25,
0.5,
1.0,
2.5,
5.0,
7.5,
10.0,
15.0,
20.0,
25.0,
50.0,
75.0,
100.0,
150.0,
500.0,
1000.0,
2500.0,
5000.0,
]

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.

medium

This histogram_buckets_s list appears to be a leftover from the reverted histogram implementation. It's defined as a class attribute but is no longer used anywhere in the class or module after the other changes in this PR. It should be removed to avoid confusion and dead code.

1000.0,
2500.0,
5000.0,
]

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Bug: Unused Histogram Buckets Clutter Dataclass

The histogram_buckets_s list, a remnant of a reverted histogram implementation, is incorrectly defined as an unused instance attribute within the OpRuntimeMetrics dataclass. This unnecessarily adds a large list to every instance and clutters the class definition.

Fix in Cursor Fix in Web

@ray-gardener ray-gardener Bot added the core Issues that should be addressed in Ray Core label Oct 17, 2025
@alanwguo

Copy link
Copy Markdown
Contributor Author

fixing forward instead: #57851

@alanwguo alanwguo closed this Oct 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core Issues that should be addressed in Ray Core

2 participants