Skip to content

Commit

Permalink
fix: fix attempt
Browse files Browse the repository at this point in the history
  • Loading branch information
jvmakine committed Oct 3, 2024
1 parent 07df40a commit dd4ec16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/controller/scaling/scaling.go
Original file line number Diff line number Diff line change
Expand Up @@ -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]())
Expand Down

0 comments on commit dd4ec16

Please sign in to comment.