Skip to content

[train] Rename DatasetsSetupCallback to DatasetsCallback#59423

Merged
matthewdeng merged 1 commit intoray-project:masterfrom
JasonLi1909:rename-datasets-setup-callback
Dec 18, 2025
Merged

[train] Rename DatasetsSetupCallback to DatasetsCallback#59423
matthewdeng merged 1 commit intoray-project:masterfrom
JasonLi1909:rename-datasets-setup-callback

Conversation

@JasonLi1909
Copy link
Contributor

@JasonLi1909 JasonLi1909 commented Dec 14, 2025

PR #58325 adds shutdown and abort hooks to enhance resource-cleanup logic in DatasetsSetupCallback, the callback’s responsibilities have expanded beyond initial setup. Accordingly, this PR renames it to DatasetsCallback for better alignment with its behavior.

Signed-off-by: JasonLi1909 <jasli1909@gmail.com>
@JasonLi1909 JasonLi1909 requested a review from a team as a code owner December 14, 2025 05:45
Copy link
Contributor

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

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 renames DatasetsSetupCallback to DatasetsCallback to better reflect its expanded responsibilities, which now include resource cleanup logic beyond just initial setup. The change is a straightforward refactoring and has been applied consistently across all relevant files, including imports, class definitions, instantiations, and documentation. The new name improves clarity and aligns better with the callback's behavior. The changes are correct and well-executed.

@ray-gardener ray-gardener bot added the train Ray Train Related Issue label Dec 14, 2025
@JasonLi1909 JasonLi1909 added the go add ONLY when ready to merge, run all tests label Dec 17, 2025
@matthewdeng matthewdeng merged commit 6e86b65 into ray-project:master Dec 18, 2025
6 checks passed
Yicheng-Lu-llll pushed a commit to Yicheng-Lu-llll/ray that referenced this pull request Dec 22, 2025
…#59423)

PR ray-project#58325 adds shutdown and abort hooks to enhance resource-cleanup
logic in DatasetsSetupCallback, the callback’s responsibilities have
expanded beyond initial setup. Accordingly, this PR renames it to
DatasetsCallback for better alignment with its behavior.

Signed-off-by: JasonLi1909 <jasli1909@gmail.com>
peterxcli pushed a commit to peterxcli/ray that referenced this pull request Feb 25, 2026
…#59423)

PR ray-project#58325 adds shutdown and abort hooks to enhance resource-cleanup
logic in DatasetsSetupCallback, the callback’s responsibilities have
expanded beyond initial setup. Accordingly, this PR renames it to
DatasetsCallback for better alignment with its behavior.

Signed-off-by: JasonLi1909 <jasli1909@gmail.com>
Signed-off-by: peterxcli <peterxcli@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

go add ONLY when ready to merge, run all tests train Ray Train Related Issue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants