fix(swarm): remove 503 error workaround

It's not working as it is part of a higher issue
This commit is contained in:
Alexis Couvreur
2022-10-17 20:24:41 +00:00
parent ff5b510dd1
commit 333efd2d70

View File

@@ -126,14 +126,6 @@ func (scaler *DockerSwarmScaler) isServiceRunningFor(service *swarm.Service, dur
return false
}
// Getting 503 first time a workload is woken up https://github.com/acouvreur/sablier/issues/24
// Let the service be up for a given duration
for _, task := range tasks {
if time.Since(task.Status.Timestamp) < (time.Second * 5) {
return false
}
}
return true
}