uncap retries on main
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user