Skip to content

Commit 9cd9608

Browse files
docs: update default max parallel tasks per job (#11940)
- [ ] Regenerate this pull request now. PiperOrigin-RevId: 577948187 Source-Link: googleapis/googleapis@4aad618 Source-Link: googleapis/googleapis-gen@8ddd2e6 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWJhdGNoLy5Pd2xCb3QueWFtbCIsImgiOiI4ZGRkMmU2MTJiNjJhZTI5YTljMzJjZDY0ODk0MjA0NWJkOWI3NWI2In0= BEGIN_NESTED_COMMIT docs: Add clarification for `TaskGroup.parallelism` PiperOrigin-RevId: 577945369 Source-Link: googleapis/googleapis@5a7e895 Source-Link: googleapis/googleapis-gen@b9705e9 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWJhdGNoLy5Pd2xCb3QueWFtbCIsImgiOiJiOTcwNWU5ZTgyNjk2YmFmMmIzN2U2ODk5MGI3MWQ4M2ZlMDhkYmY2In0= END_NESTED_COMMIT --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent 8536b20 commit 9cd9608

File tree

8 files changed

+16
-9
lines changed

8 files changed

+16
-9
lines changed

packages/google-cloud-batch/google/cloud/batch/gapic_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16-
__version__ = "0.17.2" # {x-release-please-version}
16+
__version__ = "0.0.0" # {x-release-please-version}

packages/google-cloud-batch/google/cloud/batch_v1/gapic_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16-
__version__ = "0.17.2" # {x-release-please-version}
16+
__version__ = "0.0.0" # {x-release-please-version}

packages/google-cloud-batch/google/cloud/batch_v1/types/job.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -907,8 +907,10 @@ class TaskGroup(proto.Message):
907907
Default is 1.
908908
parallelism (int):
909909
Max number of tasks that can run in parallel. Default to
910-
min(task_count, 1000). Field parallelism must be 1 if the
911-
scheduling_policy is IN_ORDER.
910+
min(task_count, parallel tasks per job limit). See: `Job
911+
Limits <https://cloud.google.com/batch/quotas#job_limits>`__.
912+
Field parallelism must be 1 if the scheduling_policy is
913+
IN_ORDER.
912914
scheduling_policy (google.cloud.batch_v1.types.TaskGroup.SchedulingPolicy):
913915
Scheduling policy for Tasks in the TaskGroup. The default
914916
value is AS_SOON_AS_POSSIBLE.

packages/google-cloud-batch/google/cloud/batch_v1alpha/gapic_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16-
__version__ = "0.17.2" # {x-release-please-version}
16+
__version__ = "0.0.0" # {x-release-please-version}

packages/google-cloud-batch/google/cloud/batch_v1alpha/types/job.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1051,8 +1051,10 @@ class TaskGroup(proto.Message):
10511051
Default is 1.
10521052
parallelism (int):
10531053
Max number of tasks that can run in parallel. Default to
1054-
min(task_count, 1000). Field parallelism must be 1 if the
1055-
scheduling_policy is IN_ORDER.
1054+
min(task_count, parallel tasks per job limit). See: `Job
1055+
Limits <https://cloud.google.com/batch/quotas#job_limits>`__.
1056+
Field parallelism must be 1 if the scheduling_policy is
1057+
IN_ORDER.
10561058
scheduling_policy (google.cloud.batch_v1alpha.types.TaskGroup.SchedulingPolicy):
10571059
Scheduling policy for Tasks in the TaskGroup. The default
10581060
value is AS_SOON_AS_POSSIBLE.

packages/google-cloud-batch/noxfile.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,10 @@
2929

3030
BLACK_VERSION = "black[jupyter]==23.7.0"
3131
ISORT_VERSION = "isort==5.11.0"
32+
3233
LINT_PATHS = ["docs", "google", "tests", "noxfile.py", "setup.py"]
3334

35+
3436
DEFAULT_PYTHON_VERSION = "3.9"
3537

3638
UNIT_TEST_PYTHON_VERSIONS: List[str] = ["3.7", "3.8", "3.9", "3.10", "3.11"]
@@ -89,6 +91,7 @@ def lint(session):
8991
"--check",
9092
*LINT_PATHS,
9193
)
94+
9295
session.run("flake8", "google", "tests")
9396

9497

packages/google-cloud-batch/samples/generated_samples/snippet_metadata_google.cloud.batch.v1.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
],
99
"language": "PYTHON",
1010
"name": "google-cloud-batch",
11-
"version": "0.17.2"
11+
"version": "0.1.0"
1212
},
1313
"snippets": [
1414
{

packages/google-cloud-batch/samples/generated_samples/snippet_metadata_google.cloud.batch.v1alpha.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
],
99
"language": "PYTHON",
1010
"name": "google-cloud-batch",
11-
"version": "0.17.2"
11+
"version": "0.1.0"
1212
},
1313
"snippets": [
1414
{

0 commit comments

Comments
 (0)