Skip to content

Commit

Permalink
Add mesos comment
Browse files Browse the repository at this point in the history
  • Loading branch information
aarondav committed Nov 12, 2014
1 parent 4770f6e commit 7045e77
Showing 1 changed file with 1 addition and 0 deletions.
Expand Up @@ -53,6 +53,7 @@ private[spark] class MesosExecutorBackend
frameworkInfo: FrameworkInfo,
slaveInfo: SlaveInfo) {

// Get num cores for this task from ExecutorInfo, created in MesosSchedulerBackend.
val cpusPerTask = executorInfo.getResourcesList
.find(_.getName == "cpus")
.map(_.getScalar.getValue.toInt)
Expand Down

0 comments on commit 7045e77

Please sign in to comment.