docs: add local (non-pip) modules example for SLS-360#47
Open
deanq wants to merge 1 commit into
Open
Conversation
|
Capy auto-review is paused for this organization because the usage-cycle auto-review limit has been reached. Increase the limit or turn it off in billing settings to resume automatic reviews. |
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.
Summary
Adds
01_getting_started/05_local_modules/— a CPU example that factors a Flash endpoint across local (non-pip) Python files: a sibling module (text_utils.py) and a package (greetings/, whose__init__re-exports from a submodule). This is the capability delivered by SLS-360.Depends on the SDK/worker change:
What it demonstrates
__init__+ submodule) from an endpoint.flash deploy.Verification (see the example README for commands)
flash buildbundles the sibling + package; a module dropped by the ignore filter (e.g.test_*.py) is force-included when an endpoint imports it; an unresolved endpoint import fails the build loudly.{"greeting": "HOLA, ADA!"}, then torn down.flash dev): works once the worker image from feat: import shipped local modules before executing user code runpod-workers/flash#100 is published (stock workers don't yet materialize inline modules); testable now via a locally-built worker image.Notes
.flash/build artifacts are gitignored.name,lang) so the queue handler'sgreet(**job_input)call binds{"input": {"name": ..., "lang": ...}}correctly.