skonto commented on a change in pull request #23599: [SPARK-24793][K8s] Enhance 
spark-submit for app management
URL: https://github.com/apache/spark/pull/23599#discussion_r266483958
 
 

 ##########
 File path: 
resource-managers/kubernetes/core/src/main/scala/org/apache/spark/deploy/k8s/Config.scala
 ##########
 @@ -325,6 +325,12 @@ private[spark] object Config extends Logging {
       .booleanConf
       .createWithDefault(true)
 
+  val KUBERNETES_SUBMIT_GRACE_PERIOD =
+    ConfigBuilder("spark.kubernetes.submitGracePeriod")
+      .doc("Number of seconds that should be used to wait for graceful 
deletion of Spark pods.")
+      .longConf
 
 Review comment:
   Ok I will set unit in `timeConf` to `secs` like 
[`kubectl`](https://kubernetes.io/docs/concepts/workloads/pods/pod) does  
`kubectl delete command supports the --grace-period=<seconds>`. In general 
passing arbitrary time strings does not make much sense as grace period is 
small eg. not days, but anyway.

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to