From f84f1c0e26908e2a70777441e1174a26dca10b91 Mon Sep 17 00:00:00 2001 From: Sam Scholten Date: Sun, 30 Aug 2026 20:51:41 +1000 Subject: serve: POST /api/poll manual trigger; rename feed to Fluxrecs /api/poll runs an out-of-schedule poll through the same serialized path as the scheduler (TryLock, so curls and refreshes can't race the cursor), is POST-only, and 429s inside a 1-minute cooldown after any run. Response is JSON: polled/new_run plus the fresh row's stats when entries arrived. Also rename the RSS channel to Fluxrecs (Miniflux adopts upstream title changes as the feed name). just poll-now wraps the curl. --- justfile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'justfile') diff --git a/justfile b/justfile index 4ba4997..666ed85 100644 --- a/justfile +++ b/justfile @@ -64,4 +64,8 @@ restart SERVER: # deploy + restart in one verb ship SERVER: (deploy SERVER) (restart SERVER) - @echo "model shipped; serve restarted — watch /api/status next run" \ No newline at end of file + @echo "model shipped; serve restarted — watch /api/status next run" + +# Trigger an out-of-schedule poll (serialized + cooldown-gated server-side) +poll-now URL: + curl -sS -X POST {{URL}}/api/poll \ No newline at end of file -- cgit v1.2.3