From 333efd2d70dfc29427a8bdd58d10ea809da38e86 Mon Sep 17 00:00:00 2001 From: Alexis Couvreur Date: Mon, 17 Oct 2022 20:24:41 +0000 Subject: [PATCH] fix(swarm): remove 503 error workaround It's not working as it is part of a higher issue --- pkg/scaler/docker_swarm.go | 8 -------- 1 file changed, 8 deletions(-) diff --git a/pkg/scaler/docker_swarm.go b/pkg/scaler/docker_swarm.go index 13a500e..0bf6d51 100644 --- a/pkg/scaler/docker_swarm.go +++ b/pkg/scaler/docker_swarm.go @@ -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 }