HyukjinKwon commented on code in PR #41440:
URL: https://github.com/apache/spark/pull/41440#discussion_r1250667694
##########
sql/core/src/main/scala/org/apache/spark/sql/execution/exchange/BroadcastExchangeExec.scala:
##########
@@ -124,14 +124,17 @@ case class BroadcastExchangeExec(
case _ => 512000000
}
+ @transient
+ private lazy val jobTag = s"broadcast exchange (runId ${runId.toString})"
+
@transient
override lazy val relationFuture: Future[broadcast.Broadcast[Any]] = {
SQLExecution.withThreadLocalCaptured[broadcast.Broadcast[Any]](
session, BroadcastExchangeExec.executionContext) {
try {
- // Setup a job group here so later it may get cancelled by groupId
if necessary.
- sparkContext.setJobGroup(runId.toString, s"broadcast exchange
(runId $runId)",
- interruptOnCancel = true)
+ // Setup a job tag here so later it may get cancelled by tag if
necessary.
+ sparkContext.addJobTag(jobTag)
+ sparkContext.setInterruptOnCancel(true)
Review Comment:
cc @ulysses-you FYI. Now we can cancel the jobs in boradcast like this.
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]