Graceful shutdown - stopping stream at the end of microbatch
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-09-2025 04:57 AM
Im trying to create a system where i let spark finish the current microbatch, and letting it know it should stop after it.
The reason is that i don't want to re-calcualte a microbatch with "forcefully" stopping a stream.
Is there a way spark/databricks already implemented this?
My current approach is just raising exception at the start of the microbatch, if an indication of gracefull stop was given.
Thanks
Labels:
- Labels:
-
Workflows