yabola commented on code in PR #49270:
URL: https://github.com/apache/spark/pull/49270#discussion_r1897424382
##########
core/src/main/scala/org/apache/spark/scheduler/TaskScheduler.scala:
##########
@@ -121,4 +121,6 @@ private[spark] trait TaskScheduler {
*/
def applicationAttemptId(): Option[String]
+
+ def hasRunningTasks(stageId: Int): Boolean
Review Comment:
[Please
see](https://github.com/apache/spark/pull/49270#discussion_r1896703317)
This is the code I used to complete this in the beginning (kill waiting
stage which only has running tasks). I'm not sure which way is better.
--
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]