phanikumv commented on code in PR #68555:
URL: https://github.com/apache/airflow/pull/68555#discussion_r3414118473


##########
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:
   TaskResult.retry() missing explicit state, dont we need 
`it.state="up_for_retry"` here?



-- 
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]

Reply via email to