From b815ed447233c133dc2082a77c0158068788700c Mon Sep 17 00:00:00 2001 From: Juho Makinen Date: Thu, 3 Oct 2024 16:30:48 +1000 Subject: [PATCH] fix: fix attempt --- backend/controller/scaling/scaling.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/controller/scaling/scaling.go b/backend/controller/scaling/scaling.go index 31e10f6ff7..7d67ae4f4e 100644 --- a/backend/controller/scaling/scaling.go +++ b/backend/controller/scaling/scaling.go @@ -23,7 +23,7 @@ type RunnerScaling interface { } func BeginGrpcScaling(ctx context.Context, url url.URL, leaser leases.Leaser, handler func(ctx context.Context, msg *ftlv1.PullSchemaResponse) error) { - leaseTimeout := time.Second * 20 + leaseTimeout := time.Second * 10 for { // Grab a lease to take control of runner scaling lease, leaseContext, err := leaser.AcquireLease(ctx, leases.SystemKey("ftl-scaling", "runner-creation"), leaseTimeout, optional.None[any]())