dianfu commented on code in PR #27164:
URL: https://github.com/apache/flink/pull/27164#discussion_r2472700325
##########
flink-python/pyflink/datastream/async_data_stream.py:
##########
@@ -47,14 +48,39 @@ def unordered_wait(
:param output_type: The output data type.
:return: The transformed DataStream.
"""
- AsyncDataStream._validate(data_stream, async_function)
+ return AsyncDataStream.unordered_wait_with_retry(
+ data_stream, async_function, timeout,
async_retry_strategies.NO_RETRY_STRATEGY,
+ capacity, output_type)
+
+ @staticmethod
+ def unordered_wait_with_retry(
+ data_stream: DataStream,
+ async_function: AsyncFunction,
+ timeout: Time,
+ async_retry_strategy: AsyncRetryStrategy,
+ capacity: int = 100,
+ output_type: TypeInformation = None) -> 'DataStream':
+ """
+ Adds an async function with an AsyncRetryStrategy to support retry of
AsyncFunction to the
+ data stream. The order of output stream records may be reordered.
Review Comment:
`wording nit: The order of output stream records may be reordered. -> The
output stream records may be reordered.`
Oh, this description is copied from the Java API.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]