Skip to content

feat: execute registered flash tasks (CON-1833) - #4

Merged
KAJdev merged 4 commits into
mainfrom
zeke/con-1833-secp1-high-developer-rw-api-key-injected-into-every-deployed
Oct 30, 2026
Merged

KAJdev merged 4 commits into
mainfrom
zeke/con-1833-secp1-high-developer-rw-api-key-injected-into-every-deployed

Conversation

@KAJdev

@KAJdev KAJdev commented Oct 21, 2026 •

Copy link
Copy Markdown
Collaborator

Part of CON-1833.

Bootstrap registered tasks from the environment's artifact and execute them with JSON arguments. Readiness waits for initialization, execution caps cannot be extended, and self-cleanup uses the pod's runtime credential. Dev execution remains source-based.

Release the runtime package and task images before runpod-python#644. Task lifecycle authorization requires RunPod#6686.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Deployment-mode fallback and initialization lifecycle issues can bypass execution restrictions or prevent valid tasks from running successfully.

3 open issues
What changed in this PR

Adds registered Flash task execution to the shared runtime bootstrap, using deployed artifacts and JSON arguments while preserving source-based development execution.

Changes:

  • Loads registered tasks and runs initialization before reporting readiness.
  • Adds production request restrictions, execution timeout caps, and pod-authenticated cleanup.
  • Documents deployed task behavior and adds lifecycle and transport tests.
File Description
tests/​test_deployed_task.py Tests deployment bootstrap, JSON execution, readiness, timeouts, and cleanup.
src/​runpod_sdk_runtime/​task/​runner.py Adds production execution routing, readiness handling, timeout caps, and task cleanup authentication.
src/​runpod_sdk_runtime/​task/​deployed.py Loads registered task handles, initializes them, and validates JSON requests.
src/​runpod_sdk_runtime/​executor.py Supports prepared functions and strict JSON result serialization.
src/​runpod_sdk_runtime/​bootstrap.py Adds task runtime selection, identity validation, and bootstrap error reporting.
README.md Documents deployed task configuration, execution, and cleanup.

Review effort: Balanced

Comment thread src/runpod_sdk_runtime/task/runner.py Resolved
Comment thread src/runpod_sdk_runtime/task/deployed.py Resolved
Comment thread src/runpod_sdk_runtime/task/runner.py Resolved
Comment thread src/runpod_sdk_runtime/task/runner.py Resolved
Comment thread src/runpod_sdk_runtime/bootstrap.py Resolved
Comment thread src/runpod_sdk_runtime/task/runner.py Resolved
@KAJdev
KAJdev requested a review from deanq October 28, 2026 19:51
@KAJdev
KAJdev merged commit 24b3ff8 into main Oct 30, 2026
7 checks passed
@KAJdev
KAJdev deleted the zeke/con-1833-secp1-high-developer-rw-api-key-injected-into-every-deployed branch October 30, 2026 00:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants