You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# todo: We could remove state from initialization. Now that streams are grouped during the read(), a source
74
+
# no longer needs to store the original incoming state. But maybe there's an edge case?
75
+
self._connector_state_manager=ConnectorStateManager(state=state) # type: ignore # state is always in the form of List[AirbyteStateMessage]. The ConnectorStateManager should use generics, but this can be done later
76
+
72
77
# To reduce the complexity of the concurrent framework, we are not enabling RFR with synthetic
73
78
# cursors. We do this by no longer automatically instantiating RFR cursors when converting
74
79
# the declarative models into runtime components. Concurrent sources will continue to checkpoint
state_manager=ConnectorStateManager(state=self._state) # type: ignore # state is always in the form of List[AirbyteStateMessage]. The ConnectorStateManager should use generics, but this can be done later
183
-
184
184
# Combine streams and dynamic_streams. Note: both cannot be empty at the same time,
185
185
# and this is validated during the initialization of the source.
# We are currently in a transition to the Concurrent CDK and AsyncRetriever can only work with the support or unordered slices (for example, when we trigger reports for January and February, the report in February can be completed first). Once we have support for custom concurrent cursor or have a new implementation available in the CDK, we can enable more cursors here.
1696
+
raiseValueError(
1697
+
"AsyncRetriever with cursor other than DatetimeBasedCursor is not supported yet"
1698
+
)
1699
+
ifmodel.retriever.partition_router:
1700
+
# Note that this development is also done in parallel to the per partition development which once merged we could support here by calling `create_concurrent_cursor_from_perpartition_cursor`
1701
+
raiseValueError("Per partition state is not supported yet for AsyncRetriever")
1702
+
returnself.create_concurrent_cursor_from_datetime_based_cursor( # type: ignore # This is a known issue that we are creating and returning a ConcurrentCursor which does not technically implement the (low-code) StreamSlicer. However, (low-code) StreamSlicer and ConcurrentCursor both implement StreamSlicer.stream_slices() which is the primary method needed for checkpointing
0 commit comments