wire scheduler into queue, add retry, dev-reset cleanup, biome 2.4 migrate
- execute: actually call isInScheduleWindow/waitForWindow/sleepBetweenJobs in runSequential (they were dead code); emit queue_status SSE events (running/paused/sleeping/idle) so the pipeline's existing QueueStatus listener lights up - review: POST /:id/retry resets an errored plan to approved, wipes old done/error jobs, rebuilds command from current decisions, queues fresh job - scan: dev-mode DELETE now also wipes jobs + subtitle_files (previously orphaned after every dev reset) - biome: migrate config to 2.4 schema, autoformat 68 files (strings + indentation), relax opinionated a11y/hooks-deps/index-key rules that don't fit this codebase - routeTree.gen.ts regenerated after /nodes removal
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import type { Context } from 'hono';
|
||||
import type { Context } from "hono";
|
||||
|
||||
/** Parse a route param as a positive integer id. Returns null if invalid. */
|
||||
export function parseId(raw: string | undefined): number | null {
|
||||
@@ -22,5 +22,5 @@ export function requireId(c: Context, name: string): number | null {
|
||||
|
||||
/** True if value is one of the allowed strings. */
|
||||
export function isOneOf<T extends string>(value: unknown, allowed: readonly T[]): value is T {
|
||||
return typeof value === 'string' && (allowed as readonly string[]).includes(value);
|
||||
return typeof value === "string" && (allowed as readonly string[]).includes(value);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user