mirror of
https://github.com/wassname/ray.git
synced 2026-06-28 07:18:24 +08:00
Streaming rich function (#8602)
This commit is contained in:
@@ -2,7 +2,6 @@ import enum
|
||||
import importlib
|
||||
import inspect
|
||||
import sys
|
||||
import typing
|
||||
from abc import ABC, abstractmethod
|
||||
|
||||
from ray import cloudpickle
|
||||
@@ -17,7 +16,7 @@ class Language(enum.Enum):
|
||||
class Function(ABC):
|
||||
"""The base interface for all user-defined functions."""
|
||||
|
||||
def open(self, conf: typing.Dict[str, str]):
|
||||
def open(self, runtime_context):
|
||||
pass
|
||||
|
||||
def close(self):
|
||||
@@ -55,9 +54,6 @@ class SourceFunction(Function):
|
||||
"""
|
||||
pass
|
||||
|
||||
def close(self):
|
||||
pass
|
||||
|
||||
|
||||
class MapFunction(Function):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user