uranusjr commented on code in PR #68555:
URL: https://github.com/apache/airflow/pull/68555#discussion_r3416630329
##########
java-sdk/sdk/src/main/kotlin/org/apache/airflow/sdk/execution/Task.kt:
##########
@@ -51,6 +52,14 @@ internal object TaskResult {
it.endDate = endDate
it.renderedMapIndex = renderedMapIndex
}
+
+ fun retry(
+ endDate: OffsetDateTime = OffsetDateTime.now(),
+ renderedMapIndex: String? = null,
+ ) = RetryTask().also {
+ it.endDate = endDate
+ it.renderedMapIndex = renderedMapIndex
+ }
Review Comment:
This is handled automatically on the server side so the client does not need
to set the state explicitly.
--
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]