Error log, retry notice, a waiting counter that keeps counting
- generation_errors: every failed attempt (model, attempt, outcome, duration); admin Hibanapló page and GET /v1/admin/errors; kept 90 days - The waiting page counts from when the text was asked for (requested_at), not from the page load, so a reload no longer restarts it - It says when an attempt failed and is retried, and when a failed text's unit was given back; admins see the error Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012vLHzh5qUhFtmJhzkcTbXL
This commit is contained in:
@@ -77,6 +77,9 @@ export interface Question {
|
||||
credits_charged: number;
|
||||
created_at: string;
|
||||
completed_at: string | null;
|
||||
attempts?: number;
|
||||
next_attempt_at?: string;
|
||||
requested_at?: string;
|
||||
}
|
||||
|
||||
export interface PublicConfig {
|
||||
@@ -232,6 +235,26 @@ export interface Analysis {
|
||||
credits_charged: number;
|
||||
created_at: string;
|
||||
completed_at: string | null;
|
||||
/** Attempts so far, and when the next one starts (while it is retried). */
|
||||
attempts?: number;
|
||||
next_attempt_at?: string;
|
||||
/** When the current text was asked for: the waiting page counts from here. */
|
||||
requested_at?: string;
|
||||
}
|
||||
|
||||
/** Admin: one failed attempt in the error log. */
|
||||
export interface GenerationError {
|
||||
id: number;
|
||||
created_at: string;
|
||||
source: "analysis" | "question" | "preview";
|
||||
item_id: string;
|
||||
kind: string;
|
||||
model: string;
|
||||
attempt: number;
|
||||
outcome: "retry" | "fallback" | "failed";
|
||||
error: string;
|
||||
seconds: number | null;
|
||||
user: string | null;
|
||||
}
|
||||
|
||||
export interface AdminUser {
|
||||
|
||||
Reference in New Issue
Block a user