Skip to content

Add opt-in single-node Kubernetes Jobs#299

Draft
nateGeorge wants to merge 1 commit into
TangleML:masterfrom
nateGeorge:nate/single-node-job-mode
Draft

Add opt-in single-node Kubernetes Jobs#299
nateGeorge wants to merge 1 commit into
TangleML:masterfrom
nateGeorge:nate/single-node-job-mode

Conversation

@nateGeorge

Copy link
Copy Markdown

Adds an opt-in NonIndexed Job mode for single-node tasks while keeping direct Pods as the default and preserving existing Indexed Job behavior for multi-node tasks.

This is a follow-up to #298 and must merge after it. Launcher defaults can select pod or job, individual tasks can override the single-node mode with an annotation, and multi-node annotations always take precedence.

Testing

  • uv run --frozen black --check --fast cloud_pipelines_backend/launchers/kubernetes_launchers.py cloud_pipelines_backend/launchers/google_kubernetes_launchers.py tests/test_kubernetes_launchers.py
  • PYTHONPATH=. uv run --frozen pytest -q tests/test_kubernetes_launchers.py tests/test_skypilot_launchers.py — 35 passed
  • PYTHONPATH=. uv run --frozen pytest -q — 449 passed, 13 warnings
  • git diff --check

Let hybrid Kubernetes launchers select a NonIndexed Job for single-node tasks while keeping direct Pods as the default and preserving Indexed Jobs for multi-node tasks.

Co-authored-by: AI (Pi/GPT-5.6 Sol) <noreply@pi.dev>
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.

1 participant