You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
logger.LogWarning(exception,"[{prefix}] Exception {ExceptionType} with message {Message} detected on attempt {retry} of {retries}",nameof(TContext),exception.GetType().Name,exception.Message,retry,retries);
105
-
});
106
-
107
-
//if the sql server container is not created on run docker compose this
108
-
//migration can't fail for network related exception. The retry options for DbContext only
109
-
//apply to transient exceptions
110
-
// Note that this is NOT applied when running some orchestrators (let the orchestrator to recreate the failing service)
111
-
retry.Execute(()=>InvokeRemover(context));
112
-
}
113
-
114
-
Console.WriteLine("Deleted database associated with context {DbContextName}",typeof(TContext).Name);
115
-
logger.LogInformation("Deleted database associated with context {DbContextName}",typeof(TContext).Name);
116
-
}
117
-
catch(Exceptionex)
118
-
{
119
-
Console.WriteLine(ex.Message.ToString()+"An error occurred while deleting the database used on context {DbContextName}"+typeof(TContext).Name);
120
-
logger.LogError(ex,"An error occurred while deleting the database used on context {DbContextName}",typeof(TContext).Name);
121
-
if(underK8s)
122
-
{
123
-
throw;// Rethrow under k8s because we rely on k8s to re-run the pod
0 commit comments