Remove broker session rest

Reverts 062ec07 and 5eb0ea7: every firm's broker session stays logged in
around the clock again, renewing its token on the fixed timer as before.
The tree is back to 6dd2528's. A session_rest row left in settings is
unused.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Brandon Li
2026-10-21 23:39:53 -05:00
co-authored by Claude Opus 5.5
parent 062ec07f0a
commit 5ec5abde6e
19 changed files with 43 additions and 901 deletions
-4
View File
@@ -13,7 +13,6 @@
import { createRun } from './db';
import { findAutomation, resolveSteps } from './automations';
import { wakeAllFirms } from './clients';
export class QueueRunError extends Error {
constructor(message: string, readonly status: number) {
@@ -53,8 +52,5 @@ export function queueRun(automationId: string, supplied: Record<string, unknown>
}
const run = createRun(automationId, resolved.length, inputs);
// A purchase brings a new account: a resting session (lib/clients.ts)
// logs back in now so it is seen, and traded if it can be.
wakeAllFirms('AutoBuyer run');
return { runId: run.id, totalSteps: run.total_steps, inputs };
}