Github user ericl commented on a diff in the pull request:
https://github.com/apache/spark/pull/17166#discussion_r106053726
--- Diff: core/src/main/scala/org/apache/spark/scheduler/DAGScheduler.scala
---
@@ -732,6 +732,13 @@ class DAGScheduler(
}
/**
+ * Kill a given task. It will be retried.
+ */
+ def killTask(taskId: Long, reason: String): Unit = {
+ taskScheduler.killTask(taskId, true, reason)
+ }
--- End diff --
I added this as a param to the public API, defaulting to true. It might be
nice to pull the default from the job properties, but I didn't see a clean way
to do this.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]