perf(scenario-scheduler): parallelize stale-run cleanup on startup with effect

- use Effect.forEach with concurrency:10 to fail up to 10 runs in parallel
- isolate each failRun with catchAll so one failure doesn't abort the rest
- log unexpected failRun errors per run without halting the batch
This commit is contained in:
2026-04-17 14:32:25 +03:00
parent 2a46b355db
commit a199700878
3 changed files with 73 additions and 5 deletions
+1
View File
@@ -32,6 +32,7 @@
"better-sqlite3": "^12.8.0",
"class-transformer": "^0.5.1",
"class-validator": "^0.14.4",
"effect": "^3.21.0",
"jsdom": "^29.0.2",
"playwright": "^1.59.1",
"reflect-metadata": "^0.2.2",