3838 from sift_stream_bindings import (
3939 DurationPy ,
4040 FlowConfigPy ,
41+ FlowDescriptorPy ,
4142 FlowPy ,
4243 IngestionConfigFormPy ,
4344 IngestWithConfigDataStreamRequestPy ,
45+ IngestWithConfigDataStreamRequestWrapperPy ,
4446 MetadataPy ,
4547 RecoveryStrategyPy ,
4648 RunFormPy ,
@@ -129,12 +131,10 @@ class IngestionConfigStreamingLowLevelClient(LowLevelClientBase):
129131 DEFAULT_MAX_LOG_FILES = 7 # Equal to 1 week of logs
130132 DEFAULT_LOGFILE_PREFIX = "sift_stream_bindings.log"
131133 _sift_stream_instance : SiftStreamPy
132- _known_flows : dict [str , FlowConfig ]
133134
134- def __init__ (self , sift_stream_instance : SiftStreamPy , known_flows : dict [ str , FlowConfig ] ):
135+ def __init__ (self , sift_stream_instance : SiftStreamPy ):
135136 super ().__init__ ()
136137 self ._sift_stream_instance = sift_stream_instance
137- self ._known_flows = known_flows
138138
139139 @classmethod
140140 async def create_sift_stream_instance (
@@ -194,12 +194,7 @@ async def create_sift_stream_instance(
194194
195195 sift_stream_instance = await builder .build ()
196196
197- known_flows = {
198- flow_name : FlowConfig ._from_rust_config (flow )
199- for flow_name , flow in sift_stream_instance .get_flows ().items ()
200- }
201-
202- return cls (sift_stream_instance , known_flows )
197+ return cls (sift_stream_instance )
203198
204199 async def send (self , flow : FlowPy ):
205200 await self ._sift_stream_instance .send (flow )
@@ -210,12 +205,16 @@ async def batch_send(self, flows: Iterable[FlowPy]):
210205 async def send_requests (self , requests : list [IngestWithConfigDataStreamRequestPy ]):
211206 await self ._sift_stream_instance .send_requests (requests )
212207
208+ def send_requests_nonblocking (
209+ self , requests : Iterable [IngestWithConfigDataStreamRequestWrapperPy ]
210+ ):
211+ self ._sift_stream_instance .send_requests_nonblocking (requests )
212+
213+ def get_flow_descriptor (self , flow_name : str ) -> FlowDescriptorPy :
214+ return self ._sift_stream_instance .get_flow_descriptor (flow_name )
215+
213216 async def add_new_flows (self , flow_configs : list [FlowConfigPy ]):
214217 await self ._sift_stream_instance .add_new_flows (flow_configs )
215- self ._known_flows = {
216- flow_name : FlowConfig ._from_rust_config (flow )
217- for flow_name , flow in self ._sift_stream_instance .get_flows ().items ()
218- }
219218
220219 async def attach_run (self , run_selector : RunSelectorPy ):
221220 await self ._sift_stream_instance .attach_run (run_selector )
0 commit comments