Set the behavior of job cancellation from jobs started in this thread.
setInterruptOnCancel.Rd
Set the behavior of job cancellation from jobs started in this thread.
Arguments
- interruptOnCancel
If true, then job cancellation will result in `Thread.interrupt()` being called on the job's executor threads. This is useful to help ensure that the tasks are actually stopped in a timely manner, but is off by default due to HDFS-1208, where HDFS may respond to Thread.interrupt() by marking nodes as dead.
Examples
if (FALSE) {
sparkR.session()
setInterruptOnCancel(true)
}