Add Prefect worker example - #16
Open
opencolin wants to merge 1 commit into
Open
Conversation
Shows Prefect 3.x flow runs executing in per-run Tenki microVMs via the prefect-tenki worker (installed from git at a pinned commit; not on PyPI yet). verify.py drives TenkiWorker.run() directly against live Tenki — mirroring upstream's live_worker_smoke.py — since a localhost Prefect server is unreachable from inside the guest. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
Review complete. No issues found — approved ✅. This PR introduces a new example directory that demonstrates running Prefect workers inside Tenki microVMs. It is additive example content with no production-code changes. The Python script parses config lines, resolves the workspace, and exits non-zero on any failure; the Node shim proxies child exit status. No correctness, concurrency, security, or performance defects were found that meet the review confidence bar.
Reviewed commit: 552ea0c |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds
examples/prefect-tenki: the prefect-tenki worker runs each Prefect 3.x flow run in its own microVM (prefect work-pool create --type tenki). Not on PyPI yet, so requirements pin a git SHA.A real flow run isn't CI-feasible — the guest has to reach a Prefect API, and a localhost server is unreachable from the microVM — so
verify.pymirrors upstream's own smoke test:TenkiWorker.run()end-to-end against live Tenki with no server, asserting exit 0 and teardown. Passed live. The README is explicit about what a real deployment needs (a Prefect-equipped image with outbound access).Root README: Prefect row in Developer tools.
🤖 Generated with Claude Code