Harden API memory and CPU usage across Phases 19–22.
CI / changes (push) Successful in 17s
dotnet8-ci / build-and-test (push) Successful in 8m23s
CI / backend (push) Successful in 8m24s
node-ci / build (push) Failing after 2m1s
CI / frontend (push) Failing after 2m2s

Bound list/PDF payloads, stream MinIO I/O with cancellation, paginate history and FHIR $everything, tighten OCR lifetimes/buffers, and add phase tracking docs.
This commit is contained in:
2026-11-30 23:55:56 +08:00
parent 192cb36dc7
commit a17bc2b734
46 changed files with 1677 additions and 215 deletions
+2 -2
View File
@@ -24,9 +24,9 @@ public static class DataSeeder
private static readonly Guid Patient4Id = Guid.Parse("b1000000-0000-0000-0000-000000000004");
private static readonly Guid Patient5Id = Guid.Parse("b1000000-0000-0000-0000-000000000005");
public static async Task SeedAsync(AppDbContext db)
public static async Task SeedAsync(AppDbContext db, CancellationToken ct = default)
{
if (await db.Users.AnyAsync()) return;
if (await db.Users.AnyAsync(ct)) return;
// ── Users (2 per role) ────────────────────────────────────────────────
var users = new[]