Add new overload for `EnableRetryOnFailure` that allows to pass in `maxRetryCount` and `maxRetryDelay`.

Abierto
#3,268 1 comentario 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
2/5
Tiempo estimado
1-3 horas
Aptitud para principiantes
35/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
csharp, postgresql
Área
database

Línea de trabajo

Start with the EnableRetryOnFailure overloads in src/EFCore.PG/Infrastructure/NpgsqlDbContextOptionsBuilder.cs, especially the location linked in the issue, and read the TODO in src/EFCore.PG/NpgsqlRetryingExecutionStrategy.cs for context. Done means the options builder offers an overload taking maxRetryCount and maxRetryDelay without requiring errorCodesToAdd; check the related tests for the expected overload behavior.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

blocked

None of the four available overloads allow to pass just the max retry count (int) and max delay (TimeSpan). The closest fit to this, is an overload that accepts (int, TimeSpan, ICollection<string>?) where the last parameter is errorCodesToAdd.

Since the purpose of the parameter errorCodesToAdd is unclear and the use of the backing field seems to be a work in progress per the TODO comment at the bottom of NpgsqlRetryingExecutionStrategy.cs, there should be an overload that ignores the existence of said field.

https://github.com/npgsql/efcore.pg/blob/e31994185bee5ff05d06676c872911eeb11f8ae0/src/EFCore.PG/Infrastructure/NpgsqlDbContextOptionsBuilder.cs#L201

Lenguaje dominante
C#
Estrellas
1.8k
Forks
268
Merge medio
2 h 35 min
PR fusionados (30 d)
136

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de npgsql/efcore.pg

Todos los issues de npgsql/efcore.pg

Issues similares

Más issues de C#

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.