Admin: list and restart running generations with the models set now
- Modellek page: analyses and answers being written or waiting, with their model and the one a restart would use; restart one or all - Each attempt's started_at is its token: a restarted attempt still running in the worker cannot write its result and is dropped within 10 seconds Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012vLHzh5qUhFtmJhzkcTbXL
This commit is contained in:
@@ -266,6 +266,25 @@ export interface ModelFunction {
|
||||
finished_30d: number;
|
||||
}
|
||||
|
||||
/** Admin: an analysis or answer being written or waiting in the queue. */
|
||||
export interface AdminJob {
|
||||
id: string;
|
||||
type: "analysis" | "question";
|
||||
kind: "summary" | "natal" | "synastry" | "forecast" | "question";
|
||||
status: "pending" | "running";
|
||||
/** The model of the current attempt. */
|
||||
model: string;
|
||||
on_fallback: boolean;
|
||||
/** What a restart would use now. */
|
||||
next_model: string;
|
||||
next_fallback: string | null;
|
||||
attempts: number;
|
||||
started_at: string | null;
|
||||
created_at: string;
|
||||
next_attempt_at: string;
|
||||
error: string | null;
|
||||
}
|
||||
|
||||
/** A model OpenRouter offers; prices in USD per million tokens. */
|
||||
export interface CatalogModel {
|
||||
id: string;
|
||||
|
||||
Reference in New Issue
Block a user