diff --git a/.tangled/workflows/admission.yml b/.tangled/workflows/admission.yml index 885b9ae..71589d2 100644 --- a/.tangled/workflows/admission.yml +++ b/.tangled/workflows/admission.yml @@ -29,6 +29,7 @@ dependencies: - coreutils - python3 - openssl + - jq steps: - name: trigger the bare-metal gate @@ -45,8 +46,10 @@ steps: # create flow run FROM DEPLOYMENT: this is the endpoint that stamps the # work queue and sets state=Scheduled, which is what makes a worker pick # it up. POST /flow_runs/ would create an inert Pending run instead. - deployment=404444b5-abb2-4531-95c3-382fbf85091f auth=$(printf '%s' "$PREFECT_API_AUTH_STRING" | base64 -w0) + deployment=$(curl --disable --proto '=https' -fsS \ + "$PREFECT_API_URL/deployments/name/stream-admission/stream-admission" \ + -H "Authorization: Basic $auth" | jq -er '.id') curl --disable --proto '=https' -fsS -X POST \ "$PREFECT_API_URL/deployments/$deployment/create_flow_run" \ diff --git a/docs/deploying.md b/docs/deploying.md index 126746c..9e225cb 100644 --- a/docs/deploying.md +++ b/docs/deploying.md @@ -14,7 +14,7 @@ docker compose at `/opt/stream-experiment/`. The stream image is pinned in Admission runs on **heavypad**, as the `stream-admission` Prefect deployment defined in the sibling repo [`zzstoatzz.io/my-prefect-server`](https://tangled.org/zzstoatzz.io/my-prefect-server) -(`flows/stream_admission.py`, `prefect.yaml`). Prefect's `home-pool` is a +(`flows/stream_admission.py`, `prefect.heavypad.yaml`). Prefect's `heavypad-build-pool` is a *process* pool, so a flow run there is a bare-metal run on a 32-core box — no VM tax, no per-run guest setup. @@ -120,7 +120,7 @@ prod box instead. Upstream clone lives at deployment defaults are a smoke test, not a contract: just -f ~/tangled.org/zzstoatzz.io/my-prefect-server/justfile \ - prefect deployment run "stream-admission/stream-admission" \ + heavypad-prefect deployment run "stream-admission/stream-admission" \ --param sha= --param 'only=[]' --param 'skip=[]' --param build_image=true The gate self-heals its fixtures: `ensure_simulator` recycles a >12h/wedged