feat: scaffold load balancing worker as a template repo#5
Open
TimPietruskyRunPod wants to merge 1 commit into
Open
feat: scaffold load balancing worker as a template repo#5TimPietruskyRunPod wants to merge 1 commit into
TimPietruskyRunPod wants to merge 1 commit into
Conversation
mirror the worker-template structure so this repo works as a github template and a runpod hub listing, while staying a load balancing worker: - add .runpod/hub.json with endpointType LB and PORT/PORT_HEALTH config - add .runpod/tests.json for hub validation - rewrite README in template style (banner, hub badge, use-this-template) - add generated banner under public/ and MIT LICENSE - add template guidance comments to app.py - expand .gitignore to the standard python set - bump fastapi/uvicorn/pydantic off the 2023 pins that break on modern python
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.
Makes
worker-load-balancinga proper template repo, mirroring the structure ofworker-template(the queue-balanced one) while staying a load balancing worker.What changed
.runpod/hub.json(new)"endpointType": "LB"so the Hub deploys this as a load balancer, not a queue worker. ExposesPORT/PORT_HEALTHas configurable env vars. GPU defaults (ADA_24) to matchworker-template..runpod/tests.json(new)README.mdpublic/worker-load-balancing_banner.png(new)LICENSE(new)worker-template.app.py/pingstatus codes, adding routes). Logic unchanged..gitignorerequirements.txtpydantic==1.10.7) that crash on modern Python.Verified
Booted the server locally on the updated deps —
/ping→200,/generate,/stats, and/all respond correctly. Both JSON configs parse.Follow-ups (can't be done in code)
tests.jsonrunner exercises LB endpoints correctly (LB workers don't take queue job input) — the file is schema-valid and harmless either way.