Skip to content
This repository has been archived by the owner on Oct 23, 2024. It is now read-only.

Commit

Permalink
reverted recent change #1
Browse files Browse the repository at this point in the history
  • Loading branch information
unterstein committed Jul 26, 2016
1 parent 089453b commit 58969bb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -527,7 +527,10 @@ class SchedulerActions(
def scale(driver: SchedulerDriver, app: AppDefinition): Unit = {
import SchedulerActions._

val launchedCount = taskTracker.countAppTasksSync(app.id, _.isReachable)
def launchedNotLost(t: Task) = t.launched.isDefined && !t.isLost

val launchedCount = taskTracker.countAppTasksSync(app.id, launchedNotLost)

val targetCount = app.instances

if (targetCount > launchedCount) {
Expand Down
1 change: 1 addition & 0 deletions src/main/scala/mesosphere/marathon/core/task/Task.scala
Original file line number Diff line number Diff line change
Expand Up @@ -493,5 +493,6 @@ object Task {
def isDropped: Boolean = task.status.taskStatus == MarathonTaskStatus.Unknown

def isReachable: Boolean = isStaging || isStarting || isRunning || isKilling
def isLost: Boolean = isDropped || isUnknown || isGone || isUnreachable
}
}

0 comments on commit 58969bb

Please sign in to comment.