Skip to content

[data.dashboard.x/01] fix operator state #52188

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 14, 2025
Merged

[data.dashboard.x/01] fix operator state #52188

merged 2 commits into from
Apr 14, 2025

Conversation

can-anyscale
Copy link
Collaborator

@can-anyscale can-anyscale commented Apr 9, 2025

Currently the operator state just mimics the entire dataset state, aka. they show as running even though they already finished. Fix it so that if the number of progress already equals to number of total, move it to FINISHED state.

Test:

  • CI
Screenshot 2025-04-09 at 2 33 21 PM

@can-anyscale can-anyscale requested a review from a team as a code owner April 9, 2025 21:24
@can-anyscale can-anyscale requested a review from omatthew98 April 9, 2025 21:24
@can-anyscale can-anyscale changed the title [data.dashboard.x/1] fix operator state [data.dashboard.x/01] fix operator state Apr 9, 2025
Comment on lines 429 to 440
"state": DatasetState.FINISHED.name
if op_state.num_completed_tasks == op.num_outputs_total()
and op.num_outputs_total() > 0
else state,
Copy link
Contributor

Choose a reason for hiding this comment

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

After this PR https://github.com/ray-project/ray/pull/52226/files, we can simplify this.

Suggested change
"state": DatasetState.FINISHED.name
if op_state.num_completed_tasks == op.num_outputs_total()
and op.num_outputs_total() > 0
else state,
"state": DatasetState.FINISHED.name if op.execution_complete() else state,

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

lol nice, i'll wait for it then; does it always FINISHED once completed or can be FAILED as well?

Copy link
Contributor

Choose a reason for hiding this comment

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

No running tasks doesn't entail that operator is complete

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

ok, let's merge the other PR then I'll follow @raulchen's approach

Copy link
Contributor

Choose a reason for hiding this comment

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

only finished. we currently don't have failed state per op.

@can-anyscale
Copy link
Collaborator Author

@raulchen , @alexeykudinkin : updated, can you review, thankks

@can-anyscale can-anyscale enabled auto-merge (squash) April 14, 2025 21:56
@github-actions github-actions bot added the go add ONLY when ready to merge, run all tests label Apr 14, 2025
@can-anyscale can-anyscale merged commit 49838b4 into master Apr 14, 2025
7 checks passed
@can-anyscale can-anyscale deleted the can-dataop01 branch April 14, 2025 22:54
ktyxx pushed a commit to ktyxx/ray that referenced this pull request Apr 29, 2025
Currently the operator state just mimics the entire dataset state, aka.
they show as running even though they already finished. Fix it so that
if the number of progress already equals to number of total, move it to
FINISHED state.

Test:
- CI

<img width="572" alt="Screenshot 2025-04-09 at 2 33 21 PM"
src="https://github.com/user-attachments/assets/236ce1f8-05a8-4ab6-b8bf-2c651375c33e"
/>

---------

Signed-off-by: can <[email protected]>
vickytsang pushed a commit to ROCm/ray that referenced this pull request May 5, 2025
Currently the operator state just mimics the entire dataset state, aka.
they show as running even though they already finished. Fix it so that
if the number of progress already equals to number of total, move it to
FINISHED state.

Test:
- CI

<img width="572" alt="Screenshot 2025-04-09 at 2 33 21 PM"
src="https://github.com/user-attachments/assets/236ce1f8-05a8-4ab6-b8bf-2c651375c33e"
/>

---------

Signed-off-by: can <[email protected]>
zhaoch23 pushed a commit to Bye-legumes/ray that referenced this pull request May 14, 2025
Currently the operator state just mimics the entire dataset state, aka.
they show as running even though they already finished. Fix it so that
if the number of progress already equals to number of total, move it to
FINISHED state.

Test:
- CI

<img width="572" alt="Screenshot 2025-04-09 at 2 33 21 PM"
src="https://github.com/user-attachments/assets/236ce1f8-05a8-4ab6-b8bf-2c651375c33e"
/>

---------

Signed-off-by: can <[email protected]>
Signed-off-by: zhaoch23 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community-backlog go add ONLY when ready to merge, run all tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants