Skip to content

Commit

Permalink
fix(consumer): disable backoffice retry for transaction
Browse files Browse the repository at this point in the history
  • Loading branch information
ArneD committed Jun 28, 2024
1 parent bb51d46 commit 10d49ac
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 45 deletions.
2 changes: 1 addition & 1 deletion src/ParcelRegistry.Consumer.Address.Console/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public static async Task Main(string[] args)
.AddDbContextFactory<BackOfficeContext>((_, options) => options
.UseLoggerFactory(loggerFactory)
.UseSqlServer(hostContext.Configuration.GetConnectionString("BackOffice"), sqlServerOptions => sqlServerOptions
.EnableRetryOnFailure()
//.EnableRetryOnFailure()
.MigrationsHistoryTable(MigrationTables.BackOffice, Schema.BackOffice)
));

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ private static void RunOnSqlServer(
.UseLoggerFactory(loggerFactory)
.UseSqlServer(consumerProjectionsConnectionString, sqlServerOptions =>
{
//sqlServerOptions.EnableRetryOnFailure();
sqlServerOptions.EnableRetryOnFailure();
sqlServerOptions.MigrationsHistoryTable(MigrationTables.ConsumerAddress, Schema.ConsumerAddress);
sqlServerOptions.UseNetTopologySuite();
sqlServerOptions.CommandTimeout(120);
Expand Down
43 changes: 0 additions & 43 deletions src/ParcelRegistry.Projections.Extract/output.sql

This file was deleted.

0 comments on commit 10d49ac

Please sign in to comment.