Skip to content

Commit

Permalink
Triple the lease TTL for machine updates
Browse files Browse the repository at this point in the history
  • Loading branch information
rugwirobaker committed Oct 10, 2022
1 parent b515e47 commit 1b74e58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/command/image/update.go
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ func updateImageForMachines(ctx context.Context, app *api.AppCompact) (err error
// Acquire leases
fmt.Fprintf(io.Out, "Attempting to acquire lease(s)\n")
for _, machine := range candidates {
lease, err := flapsClient.GetLease(ctx, machine.ID, api.IntPointer(40))
lease, err := flapsClient.GetLease(ctx, machine.ID, api.IntPointer(120))
if err != nil {
return fmt.Errorf("failed to obtain lease: %w", err)
}
Expand Down

0 comments on commit 1b74e58

Please sign in to comment.