Skip to content

[Core][Worker] opportunistically start import_thread if job_id is set - #31846

Merged
scv119 merged 2 commits into
ray-project:masterfrom
scv119:early-start
Jan 23, 2023
Merged

scv119 merged 2 commits into
ray-project:masterfrom
scv119:early-start

Conversation

@scv119

@scv119 scv119 commented Jan 23, 2023 •

Copy link
Copy Markdown
Contributor

Why are these changes needed?

Previously the import thread starts as soon as the worker starts and imports the task/actor definition. After #31838, it is deferred until the first task is sent. That means we will have longer delay in the first execution.
To address the problem, we can opportunistically start the import thread after the import thread is created, if the job_id does exist.

Related issue number

Checks

@scv119
scv119 marked this pull request as ready for review January 23, 2023 02:32

@cadedaniel cadedaniel left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

good catch by @rkooo567

@scv119
scv119 merged commit 25d3d52 into ray-project:master Jan 23, 2023
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.

3 participants