forked from ray-project/ray
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[core][accelerated DAGs] Make DAG teardown blocking and fix bug durin…
…g close (ray-project#45099) ## Why are these changes needed? Contains a few fixes related to DAG teardown: - Removes an unnecessary `.close()` call that would error if the DAG has a single output (instead of a MultiOutputNode) - Makes `dag.teardown()` blocking to ensure that actors can be reused after the teardown call returns. - Makes DAG teardown in `__del__` asynchronous. if synchronous, this can hang the driver upon shutdown. I'm not exactly sure why but I believe this happens if the CoreWorker is shut down before `dag.teardown()` is complete. --------- Signed-off-by: Stephanie Wang <[email protected]>
- Loading branch information
1 parent
36749b8
commit 4937ac3
Showing
2 changed files
with
102 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters