This commit is contained in:
@@ -128,10 +128,10 @@ namespace AyaNova.Util
|
||||
|
||||
try
|
||||
{
|
||||
//Try every 10 seconds for 30 tries before giving up (5 minutes total)
|
||||
//Try every 5 seconds for 60 tries before giving up (5 minutes total)
|
||||
|
||||
var maxRetryAttempts = 30;
|
||||
var pauseBetweenFailures = TimeSpan.FromSeconds(10);
|
||||
var maxRetryAttempts = 60;
|
||||
var pauseBetweenFailures = TimeSpan.FromSeconds(5);
|
||||
RetryHelper.RetryOnException(maxRetryAttempts, pauseBetweenFailures, log, logPrepend + DisplayableConnectionString, () =>
|
||||
{
|
||||
using (var conn = new Npgsql.NpgsqlConnection(AdminConnectionString))
|
||||
|
||||
Reference in New Issue
Block a user