peter-toth commented on code in PR #514:
URL:
https://github.com/apache/spark-kubernetes-operator/pull/514#discussion_r2845583246
##########
spark-operator/src/main/java/org/apache/spark/k8s/operator/reconciler/reconcilesteps/AppCleanUpStep.java:
##########
@@ -174,6 +174,10 @@ public ReconcileProgress reconcile(
return appendStateAndRequeueAfter(
context, statusRecorder, state,
Duration.ofMillis(requeueAfterMillis));
} else {
+ // Check if current state is a failure before restarting
Review Comment:
Seems like you can move this into the if just before `requeueAfterMillis =
...`.
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]