feat(research): run durable backtests in a bounded worker pool

This commit is contained in:
Boki 2026-10-24 17:41:00 -04:00
parent bbf0dd4453
commit 26b97265c6
15 changed files with 1730 additions and 129 deletions

View file

@ -92,7 +92,7 @@ export const stockAppSchema = baseAppSchema.extend({
enableWebSocket: z.boolean().default(true),
backtesting: z
.object({
maxConcurrent: z.number().default(5),
maxConcurrent: z.union([z.literal(1), z.literal(2), z.literal(4)]).default(1),
useRustEngine: z.boolean().default(true),
executionTimeoutMs: z.number().int().positive().max(2_147_483_647).default(300_000),
allowSyntheticData: z.boolean().default(false),