-
Notifications
You must be signed in to change notification settings - Fork 6k
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
Support file:// for runtime_env working directories in jobs #25062
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Is it possible to add a local integration test for this?
- Could you add this to the docs at https://docs.ray.io/en/latest/ray-core/handling-dependencies.html#remote-uris ?
Also, does this require a separate installation similar to |
@@ -50,12 +50,13 @@ def __new__(cls, value, doc=None): | |||
HTTPS = "https", "Remote https path, assumes everything packed in one zip file." | |||
S3 = "s3", "Remote s3 path, assumes everything packed in one zip file." | |||
GS = "gs", "Remote google storage path, assumes everything packed in one zip file." | |||
NFS = "file", "NFS storage path, assumes everything packed in one zip file." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Prefer to just call it file://
to match smart_open and because it can be used more generally. We can suggest in docs that people use this for NFS.
Co-authored-by: shrekris-anyscale <92341594+shrekris-anyscale@users.noreply.github.com>
Yes, it requires |
@@ -537,6 +537,13 @@ Currently, three types of remote URIs are supported for hosting ``working_dir`` | |||
|
|||
- ``runtime_env = {"working_dir": "gs://example_bucket/example_file.zip"}`` | |||
|
|||
- ``FILE``: ``FILE`` refers to URIs starting with ``file://`` that point to compressed packages stored on a local file system or a network file system. | |||
To use packages via ``FILE`` URIs, you must have the ``smart_open`` library (you can install it using ``pip install smart_open``). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hm, I think we could probably use normal open for this case, just need to find the one line runtime env to special case.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good idea, I fixed it!
Co-authored-by: Eric Liang <ekhliang@gmail.com>
Why are these changes needed?
This makes it possible to use an NFS file system that is shared on a cluster for runtime_env working directories.
Related issue number
Checks
scripts/format.sh
to lint the changes in this PR.