Updated command timeout length to 120 seconds for worker and API.

This commit is contained in:
2026-05-14 10:19:43 -04:00
parent 0ed3bc6298
commit 53ec67f99d
2 changed files with 9 additions and 3 deletions

View File

@@ -59,7 +59,10 @@ builder.Services
builder.Services.AddDbContextFactory<AppDbContext>(optionsBuilder =>
optionsBuilder
.UseMySql(connectionString, ServerVersion.AutoDetect(connectionString))
.UseMySql(connectionString, ServerVersion.AutoDetect(connectionString), mySqlOptions =>
{
mySqlOptions.CommandTimeout(120);
})
.EnableSensitiveDataLogging(false));
// Worker services