Skip to content

Conversation

@can-anyscale
Copy link
Contributor

Add actor+job+node event to ray event export doc

Test:

  • CI

@can-anyscale can-anyscale requested a review from a team as a code owner October 20, 2025 21:56
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 adds documentation for actor, job, and node events to the Ray event export guide. The changes are clear and follow the existing structure of the document. I've provided a few suggestions to improve consistency and clarity in the descriptions of lifecycle events and to fix some minor formatting inconsistencies.

For each actor, Ray exports two types of events: Actor Definition Event and Actor Lifecycle Event.
* Actor Definition Event contains the metadata of the actor when it is defined.
See `src/ray/protobuf/public/events_actor_definition_event.proto <https://github.com/ray-project/ray/blob/master/src/ray/protobuf/public/events_actor_definition_event.proto>`_ for the event format.
* Actor Lifecycle Event contains the lifecycle information of the actor.
Copy link
Contributor

Choose a reason for hiding this comment

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

medium

The description for the Actor Lifecycle Event is a bit generic. To be more descriptive and consistent with the 'Task events' section, which mentions task state transition information, consider specifying that this event contains state transition information for actors.

Suggested change
* Actor Lifecycle Event contains the lifecycle information of the actor.
* Actor Lifecycle Event contains actor state transition information.

^^^^^^^^^^^^^^^^^^

For each driver job, Ray exports two types of events: Driver Job Definition Event and Driver Job Lifecycle Event.

Copy link
Contributor

Choose a reason for hiding this comment

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

medium

There's an extra blank line here. For consistency with the other sections in this document (e.g., 'Task events' and 'Actor events'), please remove this blank line. A blank line is not needed between the introductory paragraph and the bulleted list.


* Driver Job Definition Event contains the metadata of the driver job when it is defined.
See `src/ray/protobuf/public/events_driver_job_definition_event.proto <https://github.com/ray-project/ray/blob/master/src/ray/protobuf/public/events_driver_job_definition_event.proto>`_ for the event format.
* Driver Job Lifecycle Event contains the lifecycle information of the driver job.
Copy link
Contributor

Choose a reason for hiding this comment

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

medium

Similar to the actor event, the description for the Driver Job Lifecycle Event is a bit generic. To improve clarity and consistency, consider specifying that it contains state transition information for driver jobs.

Suggested change
* Driver Job Lifecycle Event contains the lifecycle information of the driver job.
* Driver Job Lifecycle Event contains driver job state transition information.

^^^^^^^^^^^

For each node, Ray exports two types of events: Node Definition Event and Node Lifecycle Event.

Copy link
Contributor

Choose a reason for hiding this comment

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

medium

There's an extra blank line here. For consistency with the other sections in this document, please remove this blank line. A blank line is not needed between the introductory paragraph and the bulleted list.


* Node Definition Event contains the metadata of the node when it is defined.
See `src/ray/protobuf/public/events_node_definition_event.proto <https://github.com/ray-project/ray/blob/master/src/ray/protobuf/public/events_node_definition_event.proto>`_ for the event format.
* Node Lifecycle Event contains the lifecycle information of the node.
Copy link
Contributor

Choose a reason for hiding this comment

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

medium

Similar to the other lifecycle events, the description for the Node Lifecycle Event is a bit generic. To improve clarity and consistency, consider specifying that it contains state transition information for nodes.

Suggested change
* Node Lifecycle Event contains the lifecycle information of the node.
* Node Lifecycle Event contains node state transition information.

@can-anyscale can-anyscale force-pushed the can-1ev09 branch 2 times, most recently from a9c21fa to b8b7224 Compare October 21, 2025 00:43
@ray-gardener ray-gardener bot added docs An issue or change related to documentation core Issues that should be addressed in Ray Core observability Issues related to the Ray Dashboard, Logging, Metrics, Tracing, and/or Profiling labels Oct 21, 2025
Copy link
Contributor

@angelinalg angelinalg left a comment

Choose a reason for hiding this comment

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

Do you want to remove line 9 of the ray-event-export.rst file with these new features?

Actor events
^^^^^^^^^^^^

For each actor, Ray exports two types of events: Actor Definition Event and Actor Lifecycle Event.
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
For each actor, Ray exports two types of events: Actor Definition Event and Actor Lifecycle Event.
For each actor, Ray exports two types of events: Actor Definition Events and Actor Lifecycle Events.

Copy link
Contributor

Choose a reason for hiding this comment

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

Need a blank line before the bulleted points for it to render correctly.

^^^^^^^^^^^^

For each actor, Ray exports two types of events: Actor Definition Event and Actor Lifecycle Event.
* Actor Definition Event contains the metadata of the actor when it is defined. See `src/ray/protobuf/public/events_actor_definition_event.proto <https://github.com/ray-project/ray/blob/master/src/ray/protobuf/public/events_actor_definition_event.proto>`_ for the event format.
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
* Actor Definition Event contains the metadata of the actor when it is defined. See `src/ray/protobuf/public/events_actor_definition_event.proto <https://github.com/ray-project/ray/blob/master/src/ray/protobuf/public/events_actor_definition_event.proto>`_ for the event format.
* An Actor Definition Event contains the metadata of the actor when it's defined. See `src/ray/protobuf/public/events_actor_definition_event.proto <https://github.com/ray-project/ray/blob/master/src/ray/protobuf/public/events_actor_definition_event.proto>`_ for the event format.


For each actor, Ray exports two types of events: Actor Definition Event and Actor Lifecycle Event.
* Actor Definition Event contains the metadata of the actor when it is defined. See `src/ray/protobuf/public/events_actor_definition_event.proto <https://github.com/ray-project/ray/blob/master/src/ray/protobuf/public/events_actor_definition_event.proto>`_ for the event format.
* Actor Lifecycle Event contains the actor state transition information and metadata associated with each transition. See `src/ray/protobuf/public/events_actor_lifecycle_event.proto <https://github.com/ray-project/ray/blob/master/src/ray/protobuf/public/events_actor_lifecycle_event.proto>`_ for the event format.
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
* Actor Lifecycle Event contains the actor state transition information and metadata associated with each transition. See `src/ray/protobuf/public/events_actor_lifecycle_event.proto <https://github.com/ray-project/ray/blob/master/src/ray/protobuf/public/events_actor_lifecycle_event.proto>`_ for the event format.
* An Actor Lifecycle Event contains the actor state transition information and metadata associated with each transition. See `src/ray/protobuf/public/events_actor_lifecycle_event.proto <https://github.com/ray-project/ray/blob/master/src/ray/protobuf/public/events_actor_lifecycle_event.proto>`_ for the event format.

Driver job events
^^^^^^^^^^^^^^^^^^

For each driver job, Ray exports two types of events: Driver Job Definition Event and Driver Job Lifecycle Event.
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
For each driver job, Ray exports two types of events: Driver Job Definition Event and Driver Job Lifecycle Event.
For each driver job, Ray exports two types of events: Driver Job Definition Events and Driver Job Lifecycle Events.


For each driver job, Ray exports two types of events: Driver Job Definition Event and Driver Job Lifecycle Event.

* Driver Job Definition Event contains the metadata of the driver job when it is defined. See `src/ray/protobuf/public/events_driver_job_definition_event.proto <https://github.com/ray-project/ray/blob/master/src/ray/protobuf/public/events_driver_job_definition_event.proto>`_ for the event format.
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
* Driver Job Definition Event contains the metadata of the driver job when it is defined. See `src/ray/protobuf/public/events_driver_job_definition_event.proto <https://github.com/ray-project/ray/blob/master/src/ray/protobuf/public/events_driver_job_definition_event.proto>`_ for the event format.
* A Driver Job Definition Event contains the metadata of the driver job when it's defined. See `src/ray/protobuf/public/events_driver_job_definition_event.proto <https://github.com/ray-project/ray/blob/master/src/ray/protobuf/public/events_driver_job_definition_event.proto>`_ for the event format.

For each driver job, Ray exports two types of events: Driver Job Definition Event and Driver Job Lifecycle Event.

* Driver Job Definition Event contains the metadata of the driver job when it is defined. See `src/ray/protobuf/public/events_driver_job_definition_event.proto <https://github.com/ray-project/ray/blob/master/src/ray/protobuf/public/events_driver_job_definition_event.proto>`_ for the event format.
* Driver Job Lifecycle Event contains the driver job state transition information and metadata associated with each transition. See `src/ray/protobuf/public/events_driver_job_lifecycle_event.proto <https://github.com/ray-project/ray/blob/master/src/ray/protobuf/public/events_driver_job_lifecycle_event.proto>`_ for the event format.
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
* Driver Job Lifecycle Event contains the driver job state transition information and metadata associated with each transition. See `src/ray/protobuf/public/events_driver_job_lifecycle_event.proto <https://github.com/ray-project/ray/blob/master/src/ray/protobuf/public/events_driver_job_lifecycle_event.proto>`_ for the event format.
* A Driver Job Lifecycle Event contains the driver job state transition information and metadata associated with each transition. See `src/ray/protobuf/public/events_driver_job_lifecycle_event.proto <https://github.com/ray-project/ray/blob/master/src/ray/protobuf/public/events_driver_job_lifecycle_event.proto>`_ for the event format.

Node events
^^^^^^^^^^^

For each node, Ray exports two types of events: Node Definition Event and Node Lifecycle Event.
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
For each node, Ray exports two types of events: Node Definition Event and Node Lifecycle Event.
For each node, Ray exports two types of events: Node Definition Events and Node Lifecycle Events.


For each node, Ray exports two types of events: Node Definition Event and Node Lifecycle Event.

* Node Definition Event contains the metadata of the node when it is defined. See `src/ray/protobuf/public/events_node_definition_event.proto <https://github.com/ray-project/ray/blob/master/src/ray/protobuf/public/events_node_definition_event.proto>`_ for the event format.
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
* Node Definition Event contains the metadata of the node when it is defined. See `src/ray/protobuf/public/events_node_definition_event.proto <https://github.com/ray-project/ray/blob/master/src/ray/protobuf/public/events_node_definition_event.proto>`_ for the event format.
* A Node Definition Event contains the metadata of the node when it's defined. See `src/ray/protobuf/public/events_node_definition_event.proto <https://github.com/ray-project/ray/blob/master/src/ray/protobuf/public/events_node_definition_event.proto>`_ for the event format.

For each node, Ray exports two types of events: Node Definition Event and Node Lifecycle Event.

* Node Definition Event contains the metadata of the node when it is defined. See `src/ray/protobuf/public/events_node_definition_event.proto <https://github.com/ray-project/ray/blob/master/src/ray/protobuf/public/events_node_definition_event.proto>`_ for the event format.
* Node Lifecycle Event contains the node state transition information and metadata associated with each transition. See `src/ray/protobuf/public/events_node_lifecycle_event.proto <https://github.com/ray-project/ray/blob/master/src/ray/protobuf/public/events_node_lifecycle_event.proto>`_ for the event format.
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
* Node Lifecycle Event contains the node state transition information and metadata associated with each transition. See `src/ray/protobuf/public/events_node_lifecycle_event.proto <https://github.com/ray-project/ray/blob/master/src/ray/protobuf/public/events_node_lifecycle_event.proto>`_ for the event format.
* A Node Lifecycle Event contains the node state transition information and metadata associated with each transition. See `src/ray/protobuf/public/events_node_lifecycle_event.proto <https://github.com/ray-project/ray/blob/master/src/ray/protobuf/public/events_node_lifecycle_event.proto>`_ for the event format.

Copy link
Contributor

Choose a reason for hiding this comment

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

Nice! Can we add examples for the event types as well?

@can-anyscale
Copy link
Contributor Author

address feedback

@can-anyscale can-anyscale added the go add ONLY when ready to merge, run all tests label Oct 24, 2025
@can-anyscale can-anyscale merged commit 779586f into master Oct 25, 2025
6 checks passed
@can-anyscale can-anyscale deleted the can-1ev09 branch October 25, 2025 02:30
xinyuangui2 pushed a commit to xinyuangui2/ray that referenced this pull request Oct 27, 2025
…ject#57930)

Add actor+job+node event to ray event export doc

Test:
- CI

Signed-off-by: Cuong Nguyen <[email protected]>
Signed-off-by: xgui <[email protected]>
landscapepainter pushed a commit to landscapepainter/ray that referenced this pull request Nov 17, 2025
…ject#57930)

Add actor+job+node event to ray event export doc

Test:
- CI

Signed-off-by: Cuong Nguyen <[email protected]>
Aydin-ab pushed a commit to Aydin-ab/ray-aydin that referenced this pull request Nov 19, 2025
…ject#57930)

Add actor+job+node event to ray event export doc

Test:
- CI

Signed-off-by: Cuong Nguyen <[email protected]>
Signed-off-by: Aydin Abiar <[email protected]>
Future-Outlier pushed a commit to Future-Outlier/ray that referenced this pull request Dec 7, 2025
…ject#57930)

Add actor+job+node event to ray event export doc

Test:
- CI

Signed-off-by: Cuong Nguyen <[email protected]>
Signed-off-by: Future-Outlier <[email protected]>
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 docs An issue or change related to documentation go add ONLY when ready to merge, run all tests observability Issues related to the Ray Dashboard, Logging, Metrics, Tracing, and/or Profiling

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants