uncap retries on main

main
bel 2025-12-10 08:23:54 -07:00
parent a6aad2820d
commit 47c7aa74d3
1 changed files with 1 additions and 2 deletions

View File

@ -121,7 +121,7 @@ func (e Entrypoint) String() string {
func runner(ctx context.Context, k string, foo func(context.Context) error) func() error {
return func() error {
var err error
for i := 0; i < 3; i++ {
for {
err = foo(ctx)
if ctx.Err() == nil {
log.Printf("%s failed; restarting: %v", k, err)
@ -132,6 +132,5 @@ func runner(ctx context.Context, k string, foo func(context.Context) error) func
case <-time.After(time.Second):
}
}
return fmt.Errorf("failed 3 tries: %w", err)
}
}