Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

package com.nvidia.spark.rapids.listener

import org.apache.spark.{Success, TaskEndReason}
import org.apache.spark.{Success, TaskEndReason, TaskFailedReason, TaskKilled}
import org.apache.spark.scheduler.{SparkListener, SparkListenerTaskEnd}
import scala.collection.mutable.ListBuffer

Expand All @@ -29,8 +29,9 @@ import scala.collection.mutable.ListBuffer
class TaskFailureListener extends SparkListener {
override def onTaskEnd(taskEnd: SparkListenerTaskEnd) {
taskEnd.reason match {
case Success =>
case reason => Manager.notifyAll(reason.toString)
case Success => ()
case _: TaskKilled => ()
case failedReason: TaskFailedReason => Manager.notifyAll(failedReason.toErrorString)
}
super.onTaskEnd(taskEnd)
}
Expand Down