Skip to content

fix: parse scientific-notation ceilings like the CLI - #1371

Open
Muhtasim-Munif-Fahim wants to merge 1 commit into
anthropics:mainfrom
Muhtasim-Munif-Fahim:fix/run-end-ceiling-scientific
Open

Muhtasim-Munif-Fahim wants to merge 1 commit into
anthropics:mainfrom
Muhtasim-Munif-Fahim:fix/run-end-ceiling-scientific

Conversation

@Muhtasim-Munif-Fahim

Copy link
Copy Markdown

Summary

run_end_ceiling_ms used int(raw), so CLI-compatible values like 1e6 fell back to the 600_000 ms default. Parse via float (rejecting non-integrals) to match the CLI.

Test plan

  • Extended TestRunEndCeilingFromEnv with 1e6, 1e2, and fractional rejection

Fixes #1359

int() rejected values such as 1e6 that the CLI accepts, so the SDK
silently fell back to the 600_000 ms default. Parse via float while
still rejecting non-integral values.

Fixes anthropics#1359

This branch has not been deployed

No deployments
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.

run_end_ceiling_ms falls back to the default for CLI-compatible 1e6 values

1 participant