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

[core] Remove leftover code from the import thread. Deprecate the ray config RAY_start_python_importer_thread #44036

Merged
merged 1 commit into from
Mar 18, 2024

Conversation

rynewang
Copy link
Contributor

@rynewang rynewang commented Mar 15, 2024

In #36293 the import_thread is removed. However there are some code leftovers and may fail if a remote function load is not done in time. This PR removes the remnant code for it. Also deprecated the RAY_start_python_importer_thread config.

Note: in function_manager.py there's a recursive lock which may not be needed anymore. But to be safe I did not remove it. Need some more auditing on the lock.

Fixes #44031.

Signed-off-by: Ruiyang Wang rywang014@gmail.com

Signed-off-by: Ruiyang Wang <rywang014@gmail.com>
@rynewang rynewang changed the title Remove leftover code from the import thread. Deprecate the ray config. Remove leftover code from the import thread. Deprecate the ray config RAY_start_python_importer_thread Mar 15, 2024
@rynewang rynewang changed the title Remove leftover code from the import thread. Deprecate the ray config RAY_start_python_importer_thread [core] Remove leftover code from the import thread. Deprecate the ray config RAY_start_python_importer_thread Mar 15, 2024
Copy link
Contributor

@rkooo567 rkooo567 left a comment

Choose a reason for hiding this comment

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

LGTM if tests pass

@rkooo567
Copy link
Contributor

Always nice to delete code!

@rynewang
Copy link
Contributor Author

@rkooo567 tests passed, pls merge

@jjyao jjyao merged commit 34487ed into ray-project:master Mar 18, 2024
9 checks passed
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.

[Core] AttributeError: 'Worker' object has no attribute 'import_thread'
3 participants