mirror of
https://github.com/wassname/ray.git
synced 2026-06-29 05:34:49 +08:00
Streaming rich function (#8602)
This commit is contained in:
@@ -71,12 +71,13 @@ class StreamOperator(Operator, ABC):
|
||||
def open(self, collectors, runtime_context):
|
||||
self.collectors = collectors
|
||||
self.runtime_context = runtime_context
|
||||
self.func.open(runtime_context)
|
||||
|
||||
def finish(self):
|
||||
pass
|
||||
|
||||
def close(self):
|
||||
pass
|
||||
self.func.close()
|
||||
|
||||
def collect(self, record):
|
||||
for collector in self.collectors:
|
||||
|
||||
Reference in New Issue
Block a user