mirror of
https://github.com/sablierapp/sablier.git
synced 2025-12-26 23:21:38 +01:00
fix(swarm): remove 503 error workaround
It's not working as it is part of a higher issue
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user