mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-08-06 16:18:05 +00:00
Fix Usage from Bulk Sink (#3354)
* Fix Usage from Bulk Sink * Closing stage in worklow once bulk sink starts
This commit is contained in:
parent
794cf64787
commit
4f1ef18c2b
@ -163,14 +163,13 @@ class Workflow:
|
||||
self.sink.write_record(processed_record)
|
||||
self.report["sink"] = self.sink.get_status().as_obj()
|
||||
if hasattr(self, "bulk_sink"):
|
||||
self.stage.close()
|
||||
self.bulk_sink.write_records()
|
||||
self.report["Bulk_Sink"] = self.bulk_sink.get_status().as_obj()
|
||||
|
||||
def stop(self):
|
||||
if hasattr(self, "processor"):
|
||||
self.processor.close()
|
||||
if hasattr(self, "stage"):
|
||||
self.stage.close()
|
||||
if hasattr(self, "bulk_sink"):
|
||||
self.bulk_sink.close()
|
||||
if hasattr(self, "sink"):
|
||||
|
Loading…
x
Reference in New Issue
Block a user