Commit 8c98fa1
[Data] Close threads from async UDF after actor died (ray-project#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 ray-project#59033
Signed-off-by: You-Cheng Lin <mses010108@gmail.com>
Signed-off-by: peterxcli <peterxcli@gmail.com>1 parent 38043bd commit 8c98fa1
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