Skip to content

Conversation

d4l3k
Copy link
Member

@d4l3k d4l3k commented Jun 15, 2022

Summary:
To parse a address like "addr-of-cluster-app_id", the old code will fail since it takes "addr" as the address and "of-cluster-app_id" as the app id.
After replace partition by rpartition, it should work as intended.

Differential Revision: D37187555

Pulled By: d4l3k

@facebook-github-bot facebook-github-bot added CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported labels Jun 15, 2022
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D37187555

@codecov
Copy link

codecov bot commented Jun 15, 2022

Codecov Report

Merging #523 (fd9d38a) into main (efab8b4) will increase coverage by 0.01%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main     #523      +/-   ##
==========================================
+ Coverage   94.78%   94.79%   +0.01%     
==========================================
  Files          65       65              
  Lines        3932     3942      +10     
==========================================
+ Hits         3727     3737      +10     
  Misses        205      205              
Impacted Files Coverage Δ
torchx/schedulers/ray_scheduler.py 96.25% <100.00%> (+0.25%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update efab8b4...fd9d38a. Read the comment docs.

Summary:
To parse a address like `"addr-of-cluster-app_id"`, the old code will fail since it takes `"addr"` as the address and `"of-cluster-app_id"` as the app id.
After replace `partition` by `rpartition`, it should work as intended.

Differential Revision: D37187555

Pulled By: d4l3k

fbshipit-source-id: 8ce3422481ec060db54a9bf4c508dbe668bbd3d9
@d4l3k d4l3k force-pushed the export-D37187555 branch from 9182274 to fd9d38a Compare June 15, 2022 21:41
@facebook-github-bot
Copy link
Contributor

@d4l3k has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

client = JobSubmissionClient(f"http://{addr}")
client.stop_job(app_id)

def _get_job_status(self, app_id: str) -> JobStatus:
Copy link
Contributor

Choose a reason for hiding this comment

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

It would be good to have explicit concepts that expresses app_id and maybe_app_id_address.

Copy link
Member Author

Choose a reason for hiding this comment

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

yeah, long term I'm not very happy with how we're adding the addr in here -- I think we might need to do some config refactors on this so there's a way to set a "scheduler" config for non submit methods. Most other schedulers pull context info like this from the environment variables but ray doesn't seem to do that

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants