Skip to content

Commit

Permalink
check fetchFailedTasks parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
edwinalu committed Oct 24, 2018
1 parent c5d421a commit 7966c61
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,12 @@ class SparkRestClient(sparkConf: SparkConf) {
getLogData(attemptTarget)
}
} else Future.successful(None)
val futureFailedTasks = Future {
getStagesWithFailedTasks(attemptTarget)
val futureFailedTasks = if (fetchFailedTasks) {
Future {
getStagesWithFailedTasks(attemptTarget)
}
} else {
Future.successful(Seq.empty)
}

SparkRestDerivedData(
Expand Down

0 comments on commit 7966c61

Please sign in to comment.