Skip to content
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

Add functionality for cluster.kill. #1588

Merged
merged 1 commit into from
Dec 13, 2024

Conversation

rohinb2
Copy link
Contributor

@rohinb2 rohinb2 commented Dec 12, 2024

No description provided.

Copy link
Contributor Author

rohinb2 commented Dec 12, 2024

This stack of pull requests is managed by Graphite. Learn more about stacking.

@rohinb2 rohinb2 marked this pull request as ready for review December 12, 2024 20:38
process (str): Process to kill.

Example:
>>> rh.cluster("rh-cpu").kill("ray")
Copy link
Collaborator

Choose a reason for hiding this comment

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

nit - maybe use a diff string (that's not also a package) for the example?

@@ -1228,3 +1228,14 @@ def test_cluster_run_bash_in_process(self, cluster):
res = cluster.run_bash("echo hello", process=process)
assert res[0][0] == 0
assert res[0][1].strip() == "hello"

@pytest.mark.level("local")
@pytest.mark.clustertest
Copy link
Collaborator

Choose a reason for hiding this comment

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

there's 2 existing tests in test_cluster depending on this feature that I marked as skip - can you address those too? either update or remove them if this test covers it (marked with @pytest.mark.skip("pending cluster.kill functionality"))

Copy link
Contributor Author

rohinb2 commented Dec 13, 2024

Merge activity

  • Dec 13, 10:49 AM EST: A user started a stack merge that includes this pull request via Graphite.
  • Dec 13, 10:52 AM EST: Graphite rebased this pull request as part of a merge.
  • Dec 13, 10:53 AM EST: A user merged this pull request with Graphite.

@rohinb2 rohinb2 changed the base branch from 12-12-remove_another_cluster.run_ to graphite-base/1588 December 13, 2024 15:49
@rohinb2 rohinb2 changed the base branch from graphite-base/1588 to main December 13, 2024 15:50
@rohinb2 rohinb2 force-pushed the 12-12-add_functionality_for_cluster.kill_ branch from 26b26e1 to 3ada528 Compare December 13, 2024 15:51
@rohinb2 rohinb2 merged commit f26add1 into main Dec 13, 2024
11 of 12 checks passed
@rohinb2 rohinb2 deleted the 12-12-add_functionality_for_cluster.kill_ branch December 13, 2024 15:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants