Skip to content

Rename parallelism to concurrency in Client and AxClient APIs#4923

Closed
mgrange1998 wants to merge 1 commit intofacebook:mainfrom
mgrange1998:export-D93771849
Closed

Rename parallelism to concurrency in Client and AxClient APIs#4923
mgrange1998 wants to merge 1 commit intofacebook:mainfrom
mgrange1998:export-D93771849

Conversation

@mgrange1998
Copy link
Contributor

Summary: Renames the parallelism parameter to concurrency in Client.run_trials() and adds backward-compatible deprecated max_parallelism parameters in AxClient.create_experiment() and AxClient.get_max_parallelism()get_max_concurrency(). Both include deprecation warnings guiding callers to use the new parameter names, with validation that old and new parameters are not specified simultaneously.

Differential Revision: D93771849

@meta-cla meta-cla bot added the CLA Signed Do not delete this pull request or issue due to inactivity. label Feb 20, 2026
mgrange1998 added a commit to mgrange1998/Ax that referenced this pull request Feb 20, 2026
…ok#4923)

Summary:
Pull Request resolved: facebook#4923

Renames the `parallelism` parameter to `concurrency` in `Client.run_trials()` and adds backward-compatible deprecated `max_parallelism` parameters in `AxClient.create_experiment()` and `AxClient.get_max_parallelism()` → `get_max_concurrency()`. Both include deprecation warnings guiding callers to use the new parameter names, with validation that old and new parameters are not specified simultaneously.

Differential Revision: D93771849
@meta-codesync
Copy link

meta-codesync bot commented Feb 20, 2026

@mgrange1998 has exported this pull request. If you are a Meta employee, you can view the originating Diff in D93771849.

@mgrange1998 mgrange1998 force-pushed the export-D93771849 branch 2 times, most recently from cd5857d to 9adbad0 Compare February 26, 2026 18:34
mgrange1998 added a commit to mgrange1998/Ax that referenced this pull request Feb 26, 2026
…ok#4923)

Summary:

Renames `AxClient.get_max_parallelism()` to `get_max_concurrency()` and updates internal variable names, comments, and docstrings to use "concurrency" terminology. The old `get_max_parallelism` is preserved as a deprecated stub raising `NotImplementedError`. Also updates `get_recommended_max_parallelism` to point to the new name, and imports `MaxParallelismReachedException` / `MaxGenerationParallelism` under concurrency-named aliases.

`get_max_parallelism` is only used directly in ad-hoc notebooks, making this a low-risk rename

Differential Revision: D93771849
mgrange1998 added a commit to mgrange1998/Ax that referenced this pull request Feb 26, 2026
…ok#4923)

Summary:

Renames `AxClient.get_max_parallelism()` to `get_max_concurrency()` and updates internal variable names, comments, and docstrings to use "concurrency" terminology. The old `get_max_parallelism` is preserved as a deprecated stub raising `NotImplementedError`. Also updates `get_recommended_max_parallelism` to point to the new name, and imports `MaxParallelismReachedException` / `MaxGenerationParallelism` under concurrency-named aliases.

`get_max_parallelism` is only used directly in ad-hoc notebooks, making this a low-risk rename

Differential Revision: D93771849
mgrange1998 added a commit to mgrange1998/Ax that referenced this pull request Feb 26, 2026
…ok#4923)

Summary:

Renames `AxClient.get_max_parallelism()` to `get_max_concurrency()` and updates internal variable names, comments, and docstrings to use "concurrency" terminology. The old `get_max_parallelism` is preserved as a deprecated stub raising `NotImplementedError`. Also updates `get_recommended_max_parallelism` to point to the new name, and imports `MaxParallelismReachedException` / `MaxGenerationParallelism` under concurrency-named aliases.

`get_max_parallelism` is only used directly in ad-hoc notebooks, making this a low-risk rename

Differential Revision: D93771849
mgrange1998 added a commit to mgrange1998/Ax that referenced this pull request Feb 26, 2026
…ok#4923)

Summary:

Renames `AxClient.get_max_parallelism()` to `get_max_concurrency()` and updates internal variable names, comments, and docstrings to use "concurrency" terminology. The old `get_max_parallelism` is preserved as a deprecated stub raising `NotImplementedError`. Also updates `get_recommended_max_parallelism` to point to the new name, and imports `MaxParallelismReachedException` / `MaxGenerationParallelism` under concurrency-named aliases.

`get_max_parallelism` is only used directly in ad-hoc notebooks, making this a low-risk rename

Reviewed By: saitcakmak

Differential Revision: D93771849
@codecov-commenter
Copy link

codecov-commenter commented Feb 26, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 96.85%. Comparing base (3a77c2b) to head (f142664).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #4923   +/-   ##
=======================================
  Coverage   96.85%   96.85%           
=======================================
  Files         597      597           
  Lines       63664    63668    +4     
=======================================
+ Hits        61664    61668    +4     
  Misses       2000     2000           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

…ok#4923)

Summary:

Renames `AxClient.get_max_parallelism()` to `get_max_concurrency()` and updates internal variable names, comments, and docstrings to use "concurrency" terminology. The old `get_max_parallelism` is preserved as a deprecated stub raising `NotImplementedError`. Also updates `get_recommended_max_parallelism` to point to the new name, and imports `MaxParallelismReachedException` / `MaxGenerationParallelism` under concurrency-named aliases.

`get_max_parallelism` is only used directly in ad-hoc notebooks, making this a low-risk rename

Reviewed By: saitcakmak

Differential Revision: D93771849
mgrange1998 added a commit to mgrange1998/Ax that referenced this pull request Mar 4, 2026
…ok#4923)

Summary:

Renames `AxClient.get_max_parallelism()` to `get_max_concurrency()` and updates internal variable names, comments, and docstrings to use "concurrency" terminology. The old `get_max_parallelism` is preserved as a deprecated stub raising `NotImplementedError`. Also updates `get_recommended_max_parallelism` to point to the new name, and imports `MaxParallelismReachedException` / `MaxGenerationParallelism` under concurrency-named aliases.

`get_max_parallelism` is only used directly in ad-hoc notebooks, making this a low-risk rename

Reviewed By: saitcakmak

Differential Revision: D93771849
@meta-codesync meta-codesync bot closed this in 357f9eb Mar 4, 2026
@meta-codesync
Copy link

meta-codesync bot commented Mar 4, 2026

This pull request has been merged in 357f9eb.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed Do not delete this pull request or issue due to inactivity. fb-exported Merged meta-exported

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants