Skip to content
Open
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
3 changes: 1 addition & 2 deletions core/task/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -540,14 +540,13 @@ func (m *Manager) acquireTasks(envId uid.ID, taskDescriptors Descriptors) (err e
copy(tasksToRunThisAttempt, tasksToRun)

allDeployedTasks := make(DeploymentMap)
m.deployMu.Lock()
if len(tasksToRun) > 0 {
// Alright, so we have some descriptors whose requirements should be met with
// new Tasks we're about to deploy here.
// First we ask Mesos to revive offers and block until done, then upon receiving
// the offers, we ask Mesos to run the required roles - if any.

m.deployMu.Lock()

DEPLOYMENT_ATTEMPTS_LOOP:
for attemptCount := 0; attemptCount < MAX_ATTEMPTS_PER_DEPLOY_REQUEST; attemptCount++ {
// We loop through the deployment attempts until we either succeed or
Expand Down
Loading