diff --git a/pkgs/lab-ops-hub/README.md b/pkgs/lab-ops-hub/README.md index 846c849fd5..fa475956b6 100644 --- a/pkgs/lab-ops-hub/README.md +++ b/pkgs/lab-ops-hub/README.md @@ -12,7 +12,7 @@ sized to stay inside the $5/mo plan's included amounts ($0 overage by design): | **Queues** (`labops-jobs`) | async file indexing (SHA-256 + mark indexed in D1) | | **Durable Objects** (`LiveRoom`, SQLite) | live status board: WebSocket presence + broadcast, board persisted in DO SQLite | | **Containers** (`CrawlerContainer`) | on-demand Python URL crawler; starts only when `/api/crawl` is called, `sleepAfter=2m` so idle minutes aren't burned. Worker-side fallback crawler with the same JSON contract if the container is unavailable | -| **Workers AI** | one-click note summarisation (`@cf/meta/llama-3.1-8b-instruct`, free-neuron allowance) | +| **Workers AI** | one-click note summarisation (`@cf/meta/llama-3.2-3b-instruct`, free-neuron allowance) | | **Cron Triggers** | daily 04:23 UTC: trim usage ledger (90d), refresh KV snapshot | | **Workers Assets** | the dashboard in `public/` | | **Observability** | Workers Logs enabled in `wrangler.jsonc` | @@ -96,7 +96,7 @@ wrangler containers registries credentials --push # prints a JWT # 3. Push with crane, username = account id, password = that JWT # (docker config auth entry for registry.cloudflare.com) nix run nixpkgs#crane -- push \ - registry.cloudflare.com//lab-ops-hub-crawlercontainer:latest + registry.cloudflare.com//lab-ops-hub-crawlercontainer:v3 # 4. wrangler.jsonc references the registry image (not ./Dockerfile), # so `wrangler deploy` needs no Docker at all. ``` @@ -127,7 +127,7 @@ wrangler), plain `npm run deploy` with the Dockerfile form works too; image. DO instances are sticky: a DO reuses its existing instance across rollouts, which is why image bumps appeared to "not take". If starts recover, the current config (image `:v3`, instance name - `crawler-2`) should serve crawls with `source='container'` in D1 — + `crawler-4`) should serve crawls with `source='container'` in D1 — that row is the only accepted proof. - The Worker falls back to its in-Worker crawler on any container error and reports `container_error` in the response, so the API never diff --git a/pkgs/lab-ops-hub/container-image.nix b/pkgs/lab-ops-hub/container-image.nix index 448dc826c1..5a82a4bb60 100644 --- a/pkgs/lab-ops-hub/container-image.nix +++ b/pkgs/lab-ops-hub/container-image.nix @@ -1,7 +1,7 @@ # Daemon-less OCI image for the Lab Ops Hub crawler container. # nixpkgs is pinned to the same rev as dezren39/nix's flake.lock. # Build: nix build -f container-image.nix -> store path is a docker-archive tar -# Push: crane push registry.cloudflare.com//lab-ops-hub-crawlercontainer:latest +# Push: crane push registry.cloudflare.com//lab-ops-hub-crawlercontainer:v3 # (or load it anywhere with docker/podman and `wrangler deploy` from there) let nixpkgs = fetchTarball { @@ -12,7 +12,7 @@ let in pkgs.dockerTools.buildLayeredImage { name = "lab-ops-hub-crawlercontainer"; - tag = "latest"; + tag = "v3"; contents = [ pkgs.python3 pkgs.cacert