Added transient retries for the MySql connections

This commit is contained in:
tidusjar 2021-01-26 21:30:34 +00:00
parent 94b40c0327
commit 15b71d108e

View file

@ -123,6 +123,7 @@ namespace Ombi.Extensions
options.UseMySql(config.ConnectionString, b => options.UseMySql(config.ConnectionString, b =>
{ {
b.CharSetBehavior(Pomelo.EntityFrameworkCore.MySql.Infrastructure.CharSetBehavior.NeverAppend); b.CharSetBehavior(Pomelo.EntityFrameworkCore.MySql.Infrastructure.CharSetBehavior.NeverAppend);
b.EnableRetryOnFailure();
}); });
} }