my prefect server setup prefect-metrics.waow.tech
python orchestration
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix flow execution: install python 3.14 in pull step, bootstrap tangled table

the worker image ships python 3.11 but pyproject.toml requires >=3.14.
add `uv python install 3.14` before `uv sync` in the pull step.

also add a dbt pre-hook to create raw_tangled_items if it doesn't exist,
so enrich can run before tangled-items has written any data.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

zzstoatzz d674b79c 13b966f4

+4 -1
+3
analytics/models/staging/stg_tangled_items.sql
··· 1 + -- bootstrap: ensure table exists even before tangled-items flow has run 2 + {{ config(pre_hook="CREATE TABLE IF NOT EXISTS raw_tangled_items (repo VARCHAR, kind VARCHAR, title VARCHAR, body VARCHAR, url VARCHAR, at_uri VARCHAR PRIMARY KEY, author_did VARCHAR, author_handle VARCHAR, created_at VARCHAR, parent_uri VARCHAR, fetched_at TIMESTAMP DEFAULT now())") }} 3 + 1 4 -- dedup by at_uri, keep most recent fetch; exclude comments (context, not action items) 2 5 SELECT DISTINCT ON (at_uri) 3 6 repo, kind, title, body, url, at_uri,
+1 -1
prefect.yaml
··· 3 3 pull: 4 4 - prefect.deployments.steps.run_shell_script: 5 5 script: | 6 - bash -c "rm -rf my-prefect-server && (git clone --depth 1 --branch main https://tangled.sh/zzstoatzz.io/my-prefect-server.git my-prefect-server || git clone --depth 1 --branch main https://github.com/zzstoatzz/my-prefect-server.git my-prefect-server) && cd my-prefect-server && uv sync" 6 + bash -c "rm -rf my-prefect-server && (git clone --depth 1 --branch main https://tangled.sh/zzstoatzz.io/my-prefect-server.git my-prefect-server || git clone --depth 1 --branch main https://github.com/zzstoatzz/my-prefect-server.git my-prefect-server) && cd my-prefect-server && uv python install 3.14 && uv sync" 7 7 - prefect.deployments.steps.set_working_directory: 8 8 directory: my-prefect-server 9 9