Github user pwendell commented on a diff in the pull request:
https://github.com/apache/spark/pull/246#discussion_r11425473
--- Diff: core/src/main/scala/org/apache/spark/SparkContext.scala ---
@@ -1028,6 +1028,16 @@ class SparkContext(
dagScheduler.cancelAllJobs()
}
+ /** Cancel a given job if it's scheduled or running */
+ def cancelJob(jobId: Int) {
--- End diff --
I'd like to make these private for now because a stage id and job id is not
a concept we expose directly to users in the main API at present. I the main
cancellation API we have at the moment is to use the future actions and then
call cancel on the future.
---
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.
---