Skip to content

[core][taskEvents out of GCS][docs] Update docs for task event migration out of GCS - #66363

Merged
MengjinYan merged 7 commits into
ray-project:masterfrom
karticam:karticam/task-event-migration-doc
Nov 3, 2026
Merged

MengjinYan merged 7 commits into
ray-project:masterfrom
karticam:karticam/task-event-migration-doc

Conversation

@karticam

Copy link
Copy Markdown
Contributor

There has been an effort to migrate task events out of GCS. This is part of a larger effort to move all observability data out of GCS so that it can focus solely on control plane stuff. Task events was the first set of events .

This PR updates the public doc for that change - explains the changes and what flags to configure to enable the migration.

@karticam
karticam requested review from a team as code owners September 22, 2026 02:22
@karticam karticam added core Issues that should be addressed in Ray Core go add ONLY when ready to merge, run all tests labels Sep 22, 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 updates the Ray Event Export documentation to describe the migration of task events from the Global Control Service (GCS) to the dashboard head. It details the new task event recorder, the TaskEventsHead submodule, instructions on how to enable this migrated path via environment variables, and the updated architecture. The review feedback suggests correcting the CLI command reference from ray.timeline to ray timeline in two instances for consistency.

in-memory store with the same storage limit and eviction policy the GCS used. The module
subscribes to the GCS for worker death and job completion signals, and reconciles the state
of stored task events from them. This is in parity with what ``GcsTaskManager`` did.
* **State APIs read from the dashboard head.** ``ray list tasks`` and ``ray.timeline`` query

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 CLI command is ray timeline (without a dot), consistent with ray list tasks. Please update ray.timeline to ray timeline.

Suggested change
* **State APIs read from the dashboard head.** ``ray list tasks`` and ``ray.timeline`` query
* **State APIs read from the dashboard head.** ``ray list tasks`` and ``ray timeline`` query

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.

This one would change the meaning. ray.timeline here refers to the Python API ray.timeline(). That's the function named in the enable_task_events_to_dashboard_head comment in src/ray/common/ray_config_def.h and in the warning in python/ray/_private/state.py. The ray timeline CLI command wraps it (python/ray/scripts/scripts.py). So I'd keep the Python API and add parentheses: ray.timeline(). My review has a suggestion that does this on the enable steps.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

both of them converge to the same code path, and therefore either both of them go through the new task events flow or the older one. this is reflected in the docs now which mention both ray.timeline() and ray timeline

* ``RAY_enable_task_events_to_dashboard_head=1`` to complete the migration. This single
variable makes the aggregator agent publish task events to the dashboard head, starts the
task events module on the dashboard head, and points ``ray list tasks`` and
``ray.timeline`` at the dashboard head instead of the GCS.

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 CLI command is ray timeline (without a dot). Please update ray.timeline to ray timeline.

Suggested change
``ray.timeline`` at the dashboard head instead of the GCS.
``ray timeline`` at the dashboard head instead of the GCS.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

same as above

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

Before looking into more details of the text, I have some high level comments.

On a high level this reads more like a changelog for the implementation than a user facing doc. A couple of things:

The Changes section talks about the implementation details which probably don't belong here. We already have doc/source/ray-core/internals/ray-event-exporter.rst for this and it doesn't mention any of the new pieces yet. Can we move the implementation update there and link to it from here?

Also, I think the doc can be more framed from user's perspective, for example, instead of "instead of the core worker sending task events to the GCS, task events now travel over the Ray event framework to a dedicated task events module on the dashboard head", something like "since 2.58, Ray can store task events on the API server instead of GCS to reduce GCS memory usage". Probably also worth linking from head-node-memory-management.rst since that's where people land when they hit it.

Same idea for the rest — the Changes bullets can mostly collapse into "nothing changes for you, ray list tasks / ray timeline / dashboard show the same data with the same limit". and I'd add what a user actually needs that isn't here: the dashboard has to be running for this path to work, and how to verify.

One more thing on wording. The "API server" mentioned here can be confused with K8s API server and we should probably clarify it to be the Ray API server.

What do you think?

@MengjinYan MengjinYan self-assigned this Sep 23, 2026

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

Style and docs-conventions review from Douglas Strodtman on the Anyscale docs team. I used Claude Code to help draft it, and I read and stand behind every comment. The scope is style, grammar, and Ray docs conventions only. The Core maintainers have final say on anything technical.

+1 to @MengjinYan's review. From the docs side I'd go the same way. The Changes section is implementation detail, and it fits ray-core/internals/ray-event-exporter.rst better than this user guide. Ray's style guide also says not to use a list to explain how something works. The bolded lead-in sentences on those bullets are a style problem too: the guide keeps bold for UI elements, admonition labels, and definition-list terms. So I left no line-level suggestions on Changes. One factual detail should survive the move: ray.timeline is the Python API, so the bot suggestion to change it to the ray timeline CLI would change the meaning. I replied on that thread.

The inline suggestions cover the parts that stay user-facing whichever way the restructure goes: the intro, the note, the enable steps, and the diagram. Each one keeps the technical claims as written. I checked the four env var names and their defaults against src/ray/common/ray_config_def.h, and checked that python/ray/dashboard/modules/task_events/ exists on releases/2.58.0.

Questions for the author and maintainers (not style findings):

  • Mengjin asked for a note that the dashboard must be running. ray.timeline() already logs that warning (python/ray/_private/state.py). Does the same requirement apply to ray list tasks and the dashboard UI? If so, one sentence under the enable steps covers all three.
  • A copyable block with all four variables set, plus a way to confirm the migrated path is live, would make the enable section usable as-is. What's the right command to confirm it?
  • The Architecture prose says "job death events", and the Changes bullet says "job completion signals". Are these the same GCS notification? If so, pick one term.

One pre-existing nit outside the diff: the High-level Architecture heading at line 288 should be sentence case (High-level architecture).

Comment on lines +302 to +306
Starting from 2.58, Ray is moving observability data out of the Global Control Service (GCS)
so that the GCS can focus on control plane work. :ref:`Task events <task-events>` are the
first data set to move. Instead of the core worker sending task events to the GCS, task
events now travel over the Ray event framework to a dedicated task events module on the
dashboard head, which stores them and serves the :ref:`State API <state-api-overview-ref>`.

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.

Two fixes here. "Starting from 2.58" should name Ray: "Starting in Ray 2.58". And "now travel" reads as if the change is already the default, but the note says it's opt-in. Ray's guide also flags "now" as time-relative. This version leads with what the reader gets, which @MengjinYan also asked for, and it splits the long closing sentence. The claims are unchanged.

Suggested change
Starting from 2.58, Ray is moving observability data out of the Global Control Service (GCS)
so that the GCS can focus on control plane work. :ref:`Task events <task-events>` are the
first data set to move. Instead of the core worker sending task events to the GCS, task
events now travel over the Ray event framework to a dedicated task events module on the
dashboard head, which stores them and serves the :ref:`State API <state-api-overview-ref>`.
Starting in Ray 2.58, Ray can store :ref:`task events <task-events>` on the dashboard head
instead of the Global Control Service (GCS). This option is part of a larger effort to move
observability data out of the GCS so that the GCS can focus on control plane work. Task
events are the first data set to move. When you opt in, task events travel over the Ray
event framework to a task events module on the dashboard head. That module stores the task
events and serves the :ref:`State API <state-api-overview-ref>`.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

addressed

Comment on lines +309 to +310
This migration is in progress. The default flag configuration still stores the task
events in GCS, so the migration will be triggered when explicitly opted in.

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.

Suggest active voice and present tense here, since "will be triggered when explicitly opted in" doesn't say who acts. This also points the reader to what to do.

Suggested change
This migration is in progress. The default flag configuration still stores the task
events in GCS, so the migration will be triggered when explicitly opted in.
This migration is in progress. By default, Ray still stores task events in the GCS. Ray
uses the dashboard head path only when you set the environment variables in the
following sections.

@karticam karticam Oct 19, 2026 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

made the change

Comment on lines +331 to +345
To enable the new path, set the following environment variables when starting each Ray node:

* ``RAY_enable_ray_event=1`` to use Ray events as the event collection backend. The task
event recorder only runs when this variable is set.
* ``RAY_enable_ray_task_event_recorder=1`` to record task events with
``RayTaskEventRecorder``. When ``RayTaskEventRecorder`` is active, the core worker task
event buffer stops sending events to the aggregator agent, so
``RAY_enable_core_worker_ray_event_to_aggregator`` no longer affects task events.
* ``RAY_enable_core_worker_task_event_to_gcs=0`` to stop the core worker from sending task
events to the GCS. With this variable set to ``0`` and the recorder enabled, the task event
buffer no longer records task events at all.
* ``RAY_enable_task_events_to_dashboard_head=1`` to complete the migration. This single
variable makes the aggregator agent publish task events to the dashboard head, starts the
task events module on the dashboard head, and points ``ray list tasks`` and
``ray.timeline`` at the dashboard head instead of the GCS.

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.

Style-only edits to the enable steps. The technical content is unchanged.

  • "the new path" becomes "the dashboard head path". Ray's guide flags "new" as time-relative, and the heading already calls it the migrated path.
  • "only runs" becomes "runs only", which puts "only" next to the condition it limits.
  • The passive "With this variable set to 0" and "no longer records ... at all" become active voice.
  • "This single variable" drops "single". The sentence already says what the variable does.
  • ray.timeline() gets parentheses so it reads as the Python API call. See my reply on the bot thread at line 325.
Suggested change
To enable the new path, set the following environment variables when starting each Ray node:
* ``RAY_enable_ray_event=1`` to use Ray events as the event collection backend. The task
event recorder only runs when this variable is set.
* ``RAY_enable_ray_task_event_recorder=1`` to record task events with
``RayTaskEventRecorder``. When ``RayTaskEventRecorder`` is active, the core worker task
event buffer stops sending events to the aggregator agent, so
``RAY_enable_core_worker_ray_event_to_aggregator`` no longer affects task events.
* ``RAY_enable_core_worker_task_event_to_gcs=0`` to stop the core worker from sending task
events to the GCS. With this variable set to ``0`` and the recorder enabled, the task event
buffer no longer records task events at all.
* ``RAY_enable_task_events_to_dashboard_head=1`` to complete the migration. This single
variable makes the aggregator agent publish task events to the dashboard head, starts the
task events module on the dashboard head, and points ``ray list tasks`` and
``ray.timeline`` at the dashboard head instead of the GCS.
To enable the dashboard head path, set the following environment variables when you start
each Ray node:
* ``RAY_enable_ray_event=1`` to use Ray events as the event collection backend. The task
event recorder runs only when you set this variable.
* ``RAY_enable_ray_task_event_recorder=1`` to record task events with
``RayTaskEventRecorder``. When ``RayTaskEventRecorder`` is active, the core worker task
event buffer stops sending events to the aggregator agent, so
``RAY_enable_core_worker_ray_event_to_aggregator`` no longer affects task events.
* ``RAY_enable_core_worker_task_event_to_gcs=0`` to stop the core worker from sending task
events to the GCS. When you set this variable to ``0`` and enable the recorder, the task
event buffer stops recording task events.
* ``RAY_enable_task_events_to_dashboard_head=1`` to complete the migration. This variable
makes the aggregator agent publish task events to the dashboard head, starts the task
events module on the dashboard head, and points ``ray list tasks`` and ``ray.timeline()``
at the dashboard head instead of the GCS.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

applied

Comment on lines +350 to +359
The following diagram shows how task events flow once the migration is enabled.

.. image:: ../images/task-events-out-of-gcs.png

Each core worker emits task definition, lifecycle, and profile events through
``RayTaskEventRecorder`` to the aggregator agent on its node. The aggregator agent publishes
them to the task events head on the head node, which stores them in memory and reconciles
them against the worker death and job death events it receives from the GCS over a pub-sub
connection. State APIs read task events from that store. The direct path from the core worker
to the GCS is disabled.

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.

Three edits here:

  • The image needs :alt: text for screen readers. I wrote this alt text from the diagram itself.
  • "once the migration is enabled" becomes "after you enable the migration", which is active voice.
  • The long middle sentence is split in two. The closing passive "is disabled" now names the actor, since the RAY_enable_core_worker_task_event_to_gcs=0 step is what turns off that path.

The terms "job death events" and "job completion signals" differ. I left that alone, and it's a question in the review body.

Suggested change
The following diagram shows how task events flow once the migration is enabled.
.. image:: ../images/task-events-out-of-gcs.png
Each core worker emits task definition, lifecycle, and profile events through
``RayTaskEventRecorder`` to the aggregator agent on its node. The aggregator agent publishes
them to the task events head on the head node, which stores them in memory and reconciles
them against the worker death and job death events it receives from the GCS over a pub-sub
connection. State APIs read task events from that store. The direct path from the core worker
to the GCS is disabled.
The following diagram shows how task events flow after you enable the migration.
.. image:: ../images/task-events-out-of-gcs.png
:alt: Core workers on a worker node send task and profile events through
RayTaskEventRecorder to the node's aggregator agent. The aggregator agent publishes
them to the task events head on the head node. The GCS sends job and worker death
events to the task events head over a pub-sub connection, and the State APIs read
from the task events head. The direct path from the core worker to the GCS is
disabled.
Each core worker emits task definition, lifecycle, and profile events through
``RayTaskEventRecorder`` to the aggregator agent on its node. The aggregator agent publishes
them to the task events head on the head node. The task events head stores them in memory
and reconciles them against the worker death and job death events it receives from the GCS
over a pub-sub connection. State APIs read task events from that store. In this
configuration, the core worker doesn't send task events directly to the GCS.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

done

dstrodtman added a commit that referenced this pull request Oct 5, 2026
…m RST to MyST (#66673)

## Why are these changes needed?

This PR converts the remaining prose pages under `ray-observability/`,
`ray-more-libs/`, `ray-references/`, and `ray-air/` from
reStructuredText to MyST Markdown. It continues the RST-to-MyST
conversion that already landed for `ray-core/` (#66430), `data/`
(#66375), and the doctest-wired pages (#66461). The conversion is format
only: the goal is for each page's rendered HTML to match `/en/master`.

There are five commits:

1. **Conversion.** This commit converts 25 pages, `git rm`s the `.rst`
sources, and adds one `doc/BUILD.bazel` exclude, which commit 5 reverts.
Prose keeps its source line wrapping, so the diff lines up with the
`.rst` line by line.
2. **Soft-wrap.** This commit reflows whitespace only, to one line per
paragraph and list item. `verify.py` from `ray-soft-wrap` confirms that
the non-whitespace bytes and the rendered HTML don't change on all 25
files.
3. **Render fixes.** This commit fixes six regressions that the render
diff against `/en/master` caught, even though the build was green. In
`modin`, two bare-word RST link references (`Modin_`, `documentation_`)
rendered as literal text. In `getting-started`, a bold URL was
autolinked. In `system-metrics`, a URL in a table cell lost its link. In
`dask-on-ray`, `_not_` rendered as italics. In `glossary`, the inline
`.. TODO: RLlib` text, which `/en/master` shows, had become a comment.
The commit also adds compat anchors to five headings with apostrophes
(see below).
4. **Pseudo-lists.** This commit restores three pseudo-lists that the
soft-wrap merged into one line.
5. **Review feedback.** This commit removes the glossary's placeholder
TODO entries, reverts the `doc/BUILD.bazel` change so the PR stays
docs-only, and fixes defects that the review flagged in the `.rst`
sources: a stray definition list in `dask-on-ray`, an unconverted link
in `system-metrics`, an extra parenthesis in `debug-failures`, typos in
`debug-hangs` and `optimize-performance`, a grammar slip in
`ray-debugging`, and em-dash pseudo-list items in `general-debugging`,
which are now a bulleted list.

### Scope

- `ray-air/`: `getting-started` and `deployment`, converted together.
`getting-started` includes `deployment`, and the include now points at
`deployment.md`.
- `ray-observability/`: 14 pages, including `user-guides/debug-apps/`
and `reference/system-metrics`.
- `ray-more-libs/`: 9 pages.
- `ray-references/`: `glossary` and `faq`.

**Left as RST:** `ray-observability/reference/api.rst` (`autosummary`)
and `ray-observability/reference/cli.rst` (`click`). They're API
reference pages, so they stay RST along with the other `*/api/`
reference trees.

### Construct notes for reviewers

- **Glossary.** The glossary is a native MyST `{glossary}` directive,
not RST wrapped in `{eval-rst}`. Sphinx's `glossary` directive parses
each definition with the host parser, so the definitions are Markdown
now. The glossary's placeholder `.. TODO:` entries are removed. Missing
terms can be identified separately.
- **Glossary doctest.** Nothing ran the glossary's `.. doctest::` block
as `.rst`: `pytest-sphinx` doesn't execute `doctest` sections, and
`--doctest-glob='*.md'` doesn't match `.rst`. As `.md`, the stock
doctest parser would start running its five `>>>` prompts, and the
`[[0],[1],...,[3],[4]]` output can't pass without `ELLIPSIS`. Each
prompt now carries `# doctest: +SKIP`, which keeps coverage the same as
master without a `doc/BUILD.bazel` change. Sphinx's default
`trim_doctest_flags` strips the flag from the rendered page, as in
`data/working-with-tensors.md`. If you'd rather fix the expected output
and start testing it, I can do that in a follow-up.
- **FAQ.** `faq.md` includes `_includes/_help-links.md`, the Markdown
copy of `_help.rst` that #66417 added. `_help.rst` stays, because
`cluster/vms/user-guides/community/yarn.rst` and `tune/key-concepts.rst`
still include it.
- **Comparison table.** The grid table in
`ray-collective-custom-backend` is now a native `{list-table}`.
- **Line blocks.** The line blocks in `dask-on-ray`'s version table are
now Markdown hard line breaks. This is an expected render difference:
`<p>` with `<br>` instead of `div.line-block`.

### Dead links fixed on the way

These links were broken on `/en/master` and fail `fail_on_warning` when
they're transcribed into MyST:

- `joblib` and `multiprocessing` linked to relative `actors.html` and
`installation.html`, which resolve under `ray-more-libs/` and return
404. They now link to `{doc}` `/ray-core/actors` and
`/ray-overview/installation`.
- `ray-collective` linked to `#api-reference`, but the heading's anchor
is `#api-references`.

### Open PRs that edit these pages

Each of these PRs needs to move its change onto the `.md` file: #66363
(`ray-event-export`), #65693 and #65583 (`system-metrics`), and #64957
(`joblib`, `multiprocessing`). #65321 edits `reference/cli.rst`, which
this PR doesn't convert.

## Related issue number

None.

## Checks

- [x] I've signed off every commit (`git commit -s`).
- [x] Duplicate check: no open PR converts these pages. I searched open
PRs for MyST, observability, glossary, and more-libs, and for open PRs
that edit these files.
- **Doctest parity:** `doctest_parity.py` (the `pytest-sphinx` parser,
run against `upstream/master`) reports the same sections and examples on
all 25 pages, before and after the soft-wrap: 12 examples before, 12
after.
- **Local doctest:** `pytest --doctest-modules --doctest-glob='*.md' -c
NO_PYTEST_CONFIG -p doctest_pytest_plugin` on the 24 converted pages in
the main target, with Ray nightly `bc900c2` on Python 3.10: 5 passed.
Those are the 5 files with examples. The glossary, now in the target
too, reports 1 skipped: the stock parser finds 5 examples and all 5
carry `+SKIP`.
- **Static checks:** frontmatter parses, fences balance, every label is
preserved, and there's no leftover RST outside fences or directives.
- **RtD preview:** green under `fail_on_warning` on all three commits.
- **Render diff** (`render_diff.py`, preview against `/en/master`,
filtering the two class-only differences every MyST page shows): 11 of
25 pages are identical. Every difference on the other 14 is one of
these:
- RST comments now emit `<!-- ... -->` HTML comments, which readers
don't see. Pages: `ray-air/*`, `ray-more-libs/index`, `ray-collective`,
`getting-started`, `general-debugging`, `glossary`.
- The `dask-on-ray` version table: Markdown hard line breaks (`<p>` with
`<br>`) replace RST line blocks (`div.line-block`).
- The `dask-on-ray` "Why use Dask on Ray?" item keeps its
definition-list structure. MyST adds a `myst` class to the `<dl>`, and
the class has no styling.
- Same-page fragment and `{doc}` links render as `reference internal`
instead of `reference external`. Pages: `ray-collective`, `joblib`,
`multiprocessing`. This list also includes the dead links fixed above.
- Headings with an apostrophe get a new anchor, because MyST drops the
apostrophe where docutils turned it into a hyphen. For example,
`#what-s-the-out-of-memory-error` becomes
`#whats-the-out-of-memory-error`. Five of these headings had no label,
so each gets a compat target with the old slug, which keeps existing
links working. The sixth, in `optimize-performance`, already carries the
`dashboard-cprofile` label.

This PR was written with AI assistance (Claude Code). I reviewed the
changes and ran the checks above.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Signed-off-by: Douglas Strodtman <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
nadongjun pushed a commit to nadongjun/ray that referenced this pull request Oct 6, 2026
…m RST to MyST (ray-project#66673)

## Why are these changes needed?

This PR converts the remaining prose pages under `ray-observability/`,
`ray-more-libs/`, `ray-references/`, and `ray-air/` from
reStructuredText to MyST Markdown. It continues the RST-to-MyST
conversion that already landed for `ray-core/` (ray-project#66430), `data/`
(ray-project#66375), and the doctest-wired pages (ray-project#66461). The conversion is format
only: the goal is for each page's rendered HTML to match `/en/master`.

There are five commits:

1. **Conversion.** This commit converts 25 pages, `git rm`s the `.rst`
sources, and adds one `doc/BUILD.bazel` exclude, which commit 5 reverts.
Prose keeps its source line wrapping, so the diff lines up with the
`.rst` line by line.
2. **Soft-wrap.** This commit reflows whitespace only, to one line per
paragraph and list item. `verify.py` from `ray-soft-wrap` confirms that
the non-whitespace bytes and the rendered HTML don't change on all 25
files.
3. **Render fixes.** This commit fixes six regressions that the render
diff against `/en/master` caught, even though the build was green. In
`modin`, two bare-word RST link references (`Modin_`, `documentation_`)
rendered as literal text. In `getting-started`, a bold URL was
autolinked. In `system-metrics`, a URL in a table cell lost its link. In
`dask-on-ray`, `_not_` rendered as italics. In `glossary`, the inline
`.. TODO: RLlib` text, which `/en/master` shows, had become a comment.
The commit also adds compat anchors to five headings with apostrophes
(see below).
4. **Pseudo-lists.** This commit restores three pseudo-lists that the
soft-wrap merged into one line.
5. **Review feedback.** This commit removes the glossary's placeholder
TODO entries, reverts the `doc/BUILD.bazel` change so the PR stays
docs-only, and fixes defects that the review flagged in the `.rst`
sources: a stray definition list in `dask-on-ray`, an unconverted link
in `system-metrics`, an extra parenthesis in `debug-failures`, typos in
`debug-hangs` and `optimize-performance`, a grammar slip in
`ray-debugging`, and em-dash pseudo-list items in `general-debugging`,
which are now a bulleted list.

### Scope

- `ray-air/`: `getting-started` and `deployment`, converted together.
`getting-started` includes `deployment`, and the include now points at
`deployment.md`.
- `ray-observability/`: 14 pages, including `user-guides/debug-apps/`
and `reference/system-metrics`.
- `ray-more-libs/`: 9 pages.
- `ray-references/`: `glossary` and `faq`.

**Left as RST:** `ray-observability/reference/api.rst` (`autosummary`)
and `ray-observability/reference/cli.rst` (`click`). They're API
reference pages, so they stay RST along with the other `*/api/`
reference trees.

### Construct notes for reviewers

- **Glossary.** The glossary is a native MyST `{glossary}` directive,
not RST wrapped in `{eval-rst}`. Sphinx's `glossary` directive parses
each definition with the host parser, so the definitions are Markdown
now. The glossary's placeholder `.. TODO:` entries are removed. Missing
terms can be identified separately.
- **Glossary doctest.** Nothing ran the glossary's `.. doctest::` block
as `.rst`: `pytest-sphinx` doesn't execute `doctest` sections, and
`--doctest-glob='*.md'` doesn't match `.rst`. As `.md`, the stock
doctest parser would start running its five `>>>` prompts, and the
`[[0],[1],...,[3],[4]]` output can't pass without `ELLIPSIS`. Each
prompt now carries `# doctest: +SKIP`, which keeps coverage the same as
master without a `doc/BUILD.bazel` change. Sphinx's default
`trim_doctest_flags` strips the flag from the rendered page, as in
`data/working-with-tensors.md`. If you'd rather fix the expected output
and start testing it, I can do that in a follow-up.
- **FAQ.** `faq.md` includes `_includes/_help-links.md`, the Markdown
copy of `_help.rst` that ray-project#66417 added. `_help.rst` stays, because
`cluster/vms/user-guides/community/yarn.rst` and `tune/key-concepts.rst`
still include it.
- **Comparison table.** The grid table in
`ray-collective-custom-backend` is now a native `{list-table}`.
- **Line blocks.** The line blocks in `dask-on-ray`'s version table are
now Markdown hard line breaks. This is an expected render difference:
`<p>` with `<br>` instead of `div.line-block`.

### Dead links fixed on the way

These links were broken on `/en/master` and fail `fail_on_warning` when
they're transcribed into MyST:

- `joblib` and `multiprocessing` linked to relative `actors.html` and
`installation.html`, which resolve under `ray-more-libs/` and return
404. They now link to `{doc}` `/ray-core/actors` and
`/ray-overview/installation`.
- `ray-collective` linked to `#api-reference`, but the heading's anchor
is `#api-references`.

### Open PRs that edit these pages

Each of these PRs needs to move its change onto the `.md` file: ray-project#66363
(`ray-event-export`), ray-project#65693 and ray-project#65583 (`system-metrics`), and ray-project#64957
(`joblib`, `multiprocessing`). ray-project#65321 edits `reference/cli.rst`, which
this PR doesn't convert.

## Related issue number

None.

## Checks

- [x] I've signed off every commit (`git commit -s`).
- [x] Duplicate check: no open PR converts these pages. I searched open
PRs for MyST, observability, glossary, and more-libs, and for open PRs
that edit these files.
- **Doctest parity:** `doctest_parity.py` (the `pytest-sphinx` parser,
run against `upstream/master`) reports the same sections and examples on
all 25 pages, before and after the soft-wrap: 12 examples before, 12
after.
- **Local doctest:** `pytest --doctest-modules --doctest-glob='*.md' -c
NO_PYTEST_CONFIG -p doctest_pytest_plugin` on the 24 converted pages in
the main target, with Ray nightly `bc900c2` on Python 3.10: 5 passed.
Those are the 5 files with examples. The glossary, now in the target
too, reports 1 skipped: the stock parser finds 5 examples and all 5
carry `+SKIP`.
- **Static checks:** frontmatter parses, fences balance, every label is
preserved, and there's no leftover RST outside fences or directives.
- **RtD preview:** green under `fail_on_warning` on all three commits.
- **Render diff** (`render_diff.py`, preview against `/en/master`,
filtering the two class-only differences every MyST page shows): 11 of
25 pages are identical. Every difference on the other 14 is one of
these:
- RST comments now emit `<!-- ... -->` HTML comments, which readers
don't see. Pages: `ray-air/*`, `ray-more-libs/index`, `ray-collective`,
`getting-started`, `general-debugging`, `glossary`.
- The `dask-on-ray` version table: Markdown hard line breaks (`<p>` with
`<br>`) replace RST line blocks (`div.line-block`).
- The `dask-on-ray` "Why use Dask on Ray?" item keeps its
definition-list structure. MyST adds a `myst` class to the `<dl>`, and
the class has no styling.
- Same-page fragment and `{doc}` links render as `reference internal`
instead of `reference external`. Pages: `ray-collective`, `joblib`,
`multiprocessing`. This list also includes the dead links fixed above.
- Headings with an apostrophe get a new anchor, because MyST drops the
apostrophe where docutils turned it into a hyphen. For example,
`#what-s-the-out-of-memory-error` becomes
`#whats-the-out-of-memory-error`. Five of these headings had no label,
so each gets a compat target with the old slug, which keeps existing
links working. The sixth, in `optimize-performance`, already carries the
`dashboard-cprofile` label.

This PR was written with AI assistance (Claude Code). I reviewed the
changes and ran the checks above.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Signed-off-by: Douglas Strodtman <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
@github-actions

github-actions Bot commented Oct 7, 2026

Copy link
Copy Markdown

This pull request has been automatically marked as stale because it has not had
any activity for 14 days. It will be closed in another 14 days if no further activity occurs.
Thank you for your contributions.

You can always ask for help on our discussion forum or Ray's public slack channel.

If you'd like to keep this open, just leave any comment, and the stale label will be removed.

@github-actions github-actions Bot added the stale The issue is stale. It will be closed within 7 days unless there are further conversation label Oct 7, 2026
@karticam karticam added unstale A PR that has been marked unstale. It will not get marked stale again if this label is on it. and removed stale The issue is stale. It will be closed within 7 days unless there are further conversation labels Oct 13, 2026
@karticam
karticam requested review from a team as code owners October 15, 2026 08:44
karticam and others added 2 commits October 19, 2026 14:45
- Add a user guide section with setup, requirements, and architecture
- Add the implementation detail to the event exporter internals page
- Link from head node memory management

Co-Authored-By: Claude Opus 5 <[email protected]>
Signed-off-by: Kartica Modi <[email protected]>
- Add a comma after the introductory clause

Co-Authored-By: Claude Opus 5 <[email protected]>
Signed-off-by: Kartica Modi <[email protected]>
@karticam
karticam force-pushed the karticam/task-event-migration-doc branch from 57e3874 to a45045a Compare October 19, 2026 22:14
@karticam

Copy link
Copy Markdown
Contributor Author

@MengjinYan @dstrodtman agreed to your high level comments. Made the changes. Removed the changes section from the user guide (ray-event-export.md) and added it to the ray-event-exporter.md. Also linked the user guide from head-node-memory-management.md. Please check and let me know if there are more comments


### Requirements

- Start your Ray cluster with the dashboard running. The Ray API server serves the task events on this path, so `ray.timeline()`/`ray timeline` needs it. `ray list tasks` and the Ray Dashboard need the dashboard on either path.

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.

Nit: better to add how to enable the dashboard here or add a reference to the corresponding guide.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

done. also renamed task event buffer to TaskEventBuffer at the remaining places as per earlier suggestions.

karticam and others added 5 commits October 19, 2026 18:24
Co-authored-by: Mengjin Yan <[email protected]>
Signed-off-by: Kartica Modi <[email protected]>
- Say how to enable the dashboard and link the guide
- Use TaskEventBuffer for the remaining prose mentions

Co-Authored-By: Claude Opus 5 <[email protected]>
Signed-off-by: Kartica Modi <[email protected]>

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

Thanks!

@MengjinYan
MengjinYan merged commit e3cb6d6 into ray-project:master Nov 3, 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 unstale A PR that has been marked unstale. It will not get marked stale again if this label is on it.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants