From dd4ec16e928b19b9e29435230268e8ef274742e7 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..b69e3d93c5 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 * 60 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]())