Skip to content

feat: support automatic worker sizing - #235

Open
Hynek Kydlíček (hynky1999) wants to merge 3 commits into
mainfrom
codex/auto-worker-sizing
Open

feat: support automatic worker sizing#235
Hynek Kydlíček (hynky1999) wants to merge 3 commits into
mainfrom
codex/auto-worker-sizing

Conversation

@hynky1999

Copy link
Copy Markdown
Collaborator

What changed

  • accept num_workers="auto" for local and cloud launches
  • resolve local worker counts from each stage's shard count
  • send per-stage shard counts with cloud submissions so Perpetuity can resolve automatic sizing
  • handle empty stages with zero workers
  • document automatic worker sizing

Why

Users can size execution directly from pipeline sharding without manually counting shards. Fixed positive integer worker counts remain unchanged.

Validation

  • uv run pytest tests/launchers/test_cloud_launcher.py tests/launchers/test_local_launcher.py -k auto_workers
  • uv run pytest tests/launchers/test_base_launcher.py tests/pipeline/test_planning.py tests/platform/test_cloud_client.py
  • uv run ruff check ...
  • uv run ty check

Co-Authored-By: OpenAI Codex <codex@openai.com>
@hynky1999
Hynek Kydlíček (hynky1999) marked this pull request as ready for review August 13, 2026 09:17

@chatgpt-codex-connector chatgpt-codex-connector Bot 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 3679b14a1f

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "Codex (@codex) review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "Codex (@codex) address that feedback".

Comment thread src/refiner/launchers/local.py
Co-Authored-By: OpenAI Codex <codex@openai.com>

@chatgpt-codex-connector chatgpt-codex-connector Bot 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 635ed744b8

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "Codex (@codex) review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "Codex (@codex) address that feedback".

Comment thread src/refiner/launchers/local.py
Comment thread src/refiner/launchers/cloud.py Outdated
Co-Authored-By: OpenAI Codex <codex@openai.com>
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