uranusjr commented on code in PR #68555:
URL: https://github.com/apache/airflow/pull/68555#discussion_r3416665204
##########
java-sdk/sdk/src/main/kotlin/org/apache/airflow/sdk/execution/Task.kt:
##########
@@ -68,6 +77,9 @@ internal object TaskRunner {
} catch (e: Exception) {
logger.error("Error executing task", mapOf("ti" to request.ti, "error"
to e, "trace" to e.stackTraceToString()))
e.printStackTrace()
+ if (request.tiContext?.shouldRetry == true) {
Review Comment:
We could also wrap the conditional in a function
```kotlin
TaskResult.retryIfNeeded(request.tiContext.shouldRetry)
```
--
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]