feat(research): run durable backtests in a bounded worker pool
This commit is contained in:
parent
bbf0dd4453
commit
26b97265c6
15 changed files with 1730 additions and 129 deletions
|
|
@ -139,7 +139,7 @@ describe('canonical production workflow and legacy retirement', () => {
|
|||
});
|
||||
test('observer errors cannot relabel committed success and SSE detaches on completion', async () => {
|
||||
const f = setup();
|
||||
const response = await routes(f).request('/api/backtest/stream');
|
||||
const response = await routes(f).request(`/api/backtest/stream?runId=${f.request.runId}`);
|
||||
const reader = response.body!.getReader();
|
||||
expect((await f.runner.runQueued(f.request.runId)).status).toBe('completed');
|
||||
expect(new TextDecoder().decode((await reader.read()).value)).toContain('"event":"complete"');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue