-
Notifications
You must be signed in to change notification settings - Fork 6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[data] Trigger
UDF.__del__
when an actor is about to exit (#49929)
## Why are these changes needed? A stateful UDF may depend on external resources that may need to be cleaned up at the end. This PR allows performing the cleanup operations via `UDF.__del__` Note, this only ensures cleanup is performed when the job exists gracefully. If the driver or the actor is forcefully killed, `__del__` will not be --------- Signed-off-by: Hao Chen <[email protected]>
- Loading branch information
Showing
3 changed files
with
43 additions
and
0 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
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