Commit 8d4c0e8
authored
[Data] Close threads from async UDF after actor died (#59261)
## Description
When using async map with actors in Ray Data, the asyncio thread can
keep the actor process alive and block shutdown even after the actor is
marked as dead. This occurs because the asyncio thread does not exit
when the main thread finishes.
To fix this, we create the thread with `daemon=True`, ensuring it
terminates when the main thread exits.
## Related issues
Closes #59033
Signed-off-by: You-Cheng Lin <mses010108@gmail.com>1 parent 30f8772 commit 8d4c0e8
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
102 | | - | |
| 102 | + | |
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
| |||
0 commit comments