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


##########
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:
   I removed the explicit `state` on `success` for consistency.



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