You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix: spark application does not respect time to live seconds (kubeflow#2165)
* Add time to live seconds example spark application
Signed-off-by: Yi Chen <github@chenyicn.net>
* fix: spark application does not respect time to live seconds
Signed-off-by: Yi Chen <github@chenyicn.net>
---------
Signed-off-by: Yi Chen <github@chenyicn.net>
logger.Error(err, "Failed to clean up resources for SparkApplication", "name", old.Name, "namespace", old.Namespace, "state", old.Status.AppState.State)
560
-
returnerr
561
-
}
562
-
returnnil
563
-
},
564
-
)
565
-
ifretryErr!=nil {
566
-
logger.Error(retryErr, "Failed to reconcile SparkApplication", "name", key.Name, "namespace", key.Namespace)
logger.Error(err, "Failed to clean up resources for SparkApplication", "name", old.Name, "namespace", old.Namespace, "state", old.Status.AppState.State)
601
-
returnerr
602
-
}
603
-
returnnil
604
-
},
605
-
)
606
-
ifretryErr!=nil {
607
-
logger.Error(retryErr, "Failed to reconcile SparkApplication", "name", key.Name, "namespace", key.Namespace)
logger.Error(err, "Failed to clean up resources for SparkApplication", "name", old.Name, "namespace", old.Namespace, "state", old.Status.AppState.State)
571
+
return ctrl.Result{Requeue: true}, err
572
+
}
573
+
574
+
// If termination time or TTL is not set, will not requeue this application.
0 commit comments