Skip to content

Commit

Permalink
Add a check for non-zero CPUs in TaskSetManager
Browse files Browse the repository at this point in the history
  • Loading branch information
shivaram committed Mar 25, 2014
1 parent 73fcf6f commit 260e4d5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ private[spark] class TaskSetManager(
maxLocality: TaskLocality.TaskLocality)
: Option[TaskDescription] =
{
if (!isZombie) {
if (!isZombie && availableCpus > 0) {
val curTime = clock.getTime()

var allowedLocality = getAllowedLocalityLevel(curTime)
Expand Down

0 comments on commit 260e4d5

Please sign in to comment.