[runtime env] pip-based runtime env refactor
See original GitHub issueSearch before asking
- I had searched in the issues and found no similar feature requirement.
Description
Work Items
- Introduce Virtualenv, detail:
- Create vituralenv for jobs or workers
- check ray version
- use
pip check
to find python dependencies conflict - download dependencies
- PR:
- Use coroutine in runtime env agent, detail: #21950
- Introduce
DownloadManager
, detail:- limit download peak.
- singletons, manager all download tasks
- Use coroutine to setup
py_modules
andworking_dir
, so that they can be executed in parallel with virtualenv creation. - Support change pip version
- Install conda and pip in
container
- Optimize
pip install $HTTP_URL
, detail:- we download package from $HTTP_URL
- and pip install /path/to/this/package
- Support cached Virtualenv
Use case
No response
Related issues
No response
Are you willing to submit a PR?
- Yes I am willing to submit a PR!
Issue Analytics
- State:
- Created 2 years ago
- Comments:19 (19 by maintainers)
Top Results From Across the Web
Handling runtime environment variables in create-react-apps
A new package called runtime-env-cra allows you to handle environment variables in quick and easy way with create-react-apps.
Read more >Runtime environments in AWS Mainframe Modernization
A runtime environment in AWS Mainframe Modernization is a named combination of AWS compute resources, a runtime engine, and configuration details created to ......
Read more >salt - Salt Documentation - Ubuntu Manpage
Setup the Python Environment Navigate to the pkg\windows directory and execute the ... It has support for IPv4/6 settings and the separation of...
Read more >How to Use SQL Server's Rating Functions - Morioh
... process will automatically try to cythonize Falcon for your environment, ... NET Common Language Runtime (CLR). ... FAQ About Refactoring Python.
Read more >Refactoring for Better Environment Configuration in Python 3
I was letting the runtime environment of the script dictate both; grouping them together as if it was all configuration.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@SongGuyang @Catch-Bull actually, to make this even less intrusive, what if we put these options nested inside of the
runtime_env
field? That would prevent us from needing to update schemas all over the place to support it. For example:I would be happy to go forward with this proposal, it is the least intrusive I can think of (I don’t think most users will ever think about these advanced options).
I agree that we should have
pip_check
,pip_version
andsetup_runtime_env_timeout_seconds
per runtime-env rather than cluster env, for the reason you mentioned. The timeout_seconds especially makes sense as a runtime_env option because certain environments are much slower to install than others.Since the timeout shouldn’t be part of the hash like you said, I think the second interface you proposed makes more sense, but I don’t have a strong opinion about it.