feat(speedtest): worker + hourly cron + history/run routes

Adds speedtest pg-boss worker with injectable runner for testing, hourly
cron enqueue, and /api/speedtest/history (GET) + /run (POST, owner-only) routes.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
root
2026-06-02 22:50:19 +10:00
parent c59d2407ed
commit e36a87a50e
7 changed files with 76 additions and 1 deletions

View File

@@ -4,8 +4,9 @@ import * as url from './workers/url.js';
import * as blob from './workers/blob.js';
import * as embed from './workers/embed.js';
import * as karakeep from './workers/karakeep.js';
import * as speedtest from './workers/speedtest.js';
const WORKERS = [echo, url, blob, embed, karakeep];
const WORKERS = [echo, url, blob, embed, karakeep, speedtest];
export async function registerWorkers() {
for (const w of WORKERS) {