Summary
When I run multiple PayrunTest cycles sequentially, the first 2 runs succeed but all subsequent runs timeout with Missing results for payrun job. Restarting the backend resolves it until the pattern repeats.
Steps to reproduce
- Fresh backend container (v0.10.0-beta.3, SQL Server 2022, Docker on macOS arm64 → linux/amd64 emulation)
PayrunTest batch-1.pt.json /bulk /cleantest (20 employees) → ✅
PayrunTest batch-2.pt.json /bulk /cleantest (20 employees) → ✅
PayrunTest batch-3.pt.json /bulk /cleantest (20 employees) → ❌ timeout
- All subsequent runs timeout regardless of batch size
POST /api/admin/application/clearcache between runs does NOT fix it
- Restarting the backend container fixes it for 2 more runs
What I've ruled out
- AssemblyCache: Calling
/api/admin/application/clearcache between runs does not help
- Batch size: Fails with 20, 50, or 100 employees
- MaxParallelEmployees tuning: Tested with 2 and default (11), same result
- SQL Server timeouts: No SQL errors in logs
What I observe
- The payrun job stays in
Process status and never reaches Complete
- Backend logs show no explicit error for the stuck job
- It is always the 3rd run that fails, consistently
- Only a full container restart resolves it (not just cache clear)
Environment
- Backend: v0.10.0-beta.3
- PayrollConsole: v0.10.0-beta.3
- SQL Server 2022 (Docker, linux/amd64)
- macOS arm64 host (Rosetta emulation for all containers)
- Each test creates a fresh tenant with regulation, employees, cases, and payrun
Question
Is there a known limitation with running multiple PayrunTest /cleantest cycles in sequence? Could there be an internal state (beyond AssemblyCache) that accumulates and isn't fully reset when a tenant is deleted?
I'm using PayrunTest for batch payroll validation (~1000 employees split into groups). The first 200 employees always validate correctly (99.5% conformity), but I cannot complete the remaining batches without container restarts.
Thank you for any guidance.
Summary
When I run multiple
PayrunTestcycles sequentially, the first 2 runs succeed but all subsequent runs timeout withMissing results for payrun job. Restarting the backend resolves it until the pattern repeats.Steps to reproduce
PayrunTest batch-1.pt.json /bulk /cleantest(20 employees) → ✅PayrunTest batch-2.pt.json /bulk /cleantest(20 employees) → ✅PayrunTest batch-3.pt.json /bulk /cleantest(20 employees) → ❌ timeoutPOST /api/admin/application/clearcachebetween runs does NOT fix itWhat I've ruled out
/api/admin/application/clearcachebetween runs does not helpWhat I observe
Processstatus and never reachesCompleteEnvironment
Question
Is there a known limitation with running multiple
PayrunTest /cleantestcycles in sequence? Could there be an internal state (beyond AssemblyCache) that accumulates and isn't fully reset when a tenant is deleted?I'm using PayrunTest for batch payroll validation (~1000 employees split into groups). The first 200 employees always validate correctly (99.5% conformity), but I cannot complete the remaining batches without container restarts.
Thank you for any guidance.