fix(worker): enable safe multi-instance job processing
Some checks failed
ci / release-gate (push) Has been cancelled

This commit is contained in:
2026-08-04 14:29:11 +08:00
parent f7d364b381
commit 4793ad1832
16 changed files with 570 additions and 53 deletions

View File

@@ -2,6 +2,7 @@ using Microsoft.Extensions.DependencyInjection;
using Tiku.Application;
using Tiku.Infrastructure;
using Tiku.Infrastructure.Persistence;
using Tiku.IntegrationTests.Infrastructure;
namespace Tiku.IntegrationTests;
@@ -13,8 +14,7 @@ public sealed class ModulePersistenceBoundaryTests
var services = new ServiceCollection();
services.AddLogging();
services.AddApplication();
services.AddInfrastructure(
"Host=127.0.0.1;Port=5432;Database=tiku_module_boundary_test;Username=postgres;Password=unused");
services.AddInfrastructure(DockerPostgresTestDefaults.CreateConnectionString("tiku_module_boundary_test"));
using var provider = services.BuildServiceProvider(new ServiceProviderOptions { ValidateScopes = true });
using var scope = provider.CreateScope();