Skip to content

Commit

Permalink
Bump ephemeral machine cleanup timeout to 15 seconds
Browse files Browse the repository at this point in the history
Now that cleanup can be canceled with Ctrl-C, we can stand to wait
longer. (This will hopefully stop the `fly pg import` preflight tests
from failing so often.)
  • Loading branch information
matttpt committed Aug 9, 2023
1 parent f7b68f9 commit 2d017cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/machine/ephemeral.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ func makeCleanupFunc(ctx context.Context, machine *api.Machine) func() {
)

return func() {
const stopTimeout = 5 * time.Second
const stopTimeout = 15 * time.Second

stopCtx, cancel := context.WithTimeout(context.Background(), stopTimeout)
stopCtx, cancel = ctrlc.HookCancelableContext(stopCtx, cancel)
Expand Down

0 comments on commit 2d017cb

Please sign in to comment.