Skip to content

[core] Split out periodical_runner_interface.h build target#63205

Merged
edoakes merged 5 commits into
ray-project:masterfrom
edoakes:eoakes/asio-interface
May 13, 2026
Merged

[core] Split out periodical_runner_interface.h build target#63205
edoakes merged 5 commits into
ray-project:masterfrom
edoakes:eoakes/asio-interface

Conversation

@edoakes

@edoakes edoakes commented May 7, 2026

Copy link
Copy Markdown
Collaborator

Follow-up from: #63042

Signed-off-by: Edward Oakes <ed.nmi.oakes@gmail.com>
@edoakes
edoakes requested a review from a team as a code owner May 7, 2026 18:55
@edoakes edoakes added the go add ONLY when ready to merge, run all tests label May 7, 2026

@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 refactors PeriodicalRunnerInterface into a separate header and library target to decouple the interface from its implementation. Corresponding updates were made to build files and headers across the repository to reference the new interface target. The review feedback suggests including <cstdint> in the new header to ensure it is self-contained when using uint64_t.

Comment on lines +19 to +21
#include <functional>
#include <memory>
#include <string>

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

The header uses uint64_t in the RunFnPeriodically method but does not explicitly include <cstdint>. It is best practice to include this header to ensure the file is self-contained and to avoid potential compilation issues in different environments.

Suggested change
#include <functional>
#include <memory>
#include <string>
#include <cstdint>
#include <functional>
#include <memory>
#include <string>

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

Reviewed by Cursor Bugbot for commit 80f5e70. Configure here.

Comment thread src/ray/asio/periodical_runner_interface.h
@ray-gardener ray-gardener Bot added the core Issues that should be addressed in Ray Core label May 7, 2026
edoakes added 4 commits May 7, 2026 16:02
Signed-off-by: Edward Oakes <ed.nmi.oakes@gmail.com>
Signed-off-by: Edward Oakes <ed.nmi.oakes@gmail.com>
Signed-off-by: Edward Oakes <ed.nmi.oakes@gmail.com>
@@ -0,0 +1,48 @@
// Copyright 2017 The Ray Authors.

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.

super nit: we aren't in 2017 anymore

std::string name) = 0;

protected:
virtual void DoRunFnPeriodically(

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.

not related: first time I'm seeing pure virtual + in protected which is a bit odd... looks like these are just used in periodical_runner.cc as helper functions so prob better to just move them as private helpers in periodical_runner.h and out of the interface class.

@Sparks0219 Sparks0219 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.

🚢

@edoakes
edoakes merged commit e22d83b into ray-project:master May 13, 2026
6 checks passed
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 go add ONLY when ready to merge, run all tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants