Skip to content

Commit 4edc21b

Browse files
docs: [batch] update default max parallel tasks per job (#10011)
* docs: Add clarification for `TaskGroup.parallelism` PiperOrigin-RevId: 577945369 Source-Link: googleapis/googleapis@5a7e895 Source-Link: https://github.com/googleapis/googleapis-gen/commit/b9705e9e82696baf2b37e68990b71d83fe08dbf6 Copy-Tag: eyJwIjoiamF2YS1iYXRjaC8uT3dsQm90LnlhbWwiLCJoIjoiYjk3MDVlOWU4MjY5NmJhZjJiMzdlNjg5OTBiNzFkODNmZTA4ZGJmNiJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * docs: update default max parallel tasks per job PiperOrigin-RevId: 577948187 Source-Link: googleapis/googleapis@4aad618 Source-Link: https://github.com/googleapis/googleapis-gen/commit/8ddd2e612b62ae29a9c32cd648942045bd9b75b6 Copy-Tag: eyJwIjoiamF2YS1iYXRjaC8uT3dsQm90LnlhbWwiLCJoIjoiOGRkZDJlNjEyYjYyYWUyOWE5YzMyY2Q2NDg5NDIwNDViZDliNzViNiJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent 2bd259f commit 4edc21b

File tree

7 files changed

+26
-14
lines changed

7 files changed

+26
-14
lines changed

java-batch/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file:
2323
<dependency>
2424
<groupId>com.google.cloud</groupId>
2525
<artifactId>libraries-bom</artifactId>
26-
<version>26.25.0</version>
26+
<version>26.26.0</version>
2727
<type>pom</type>
2828
<scope>import</scope>
2929
</dependency>
@@ -201,7 +201,7 @@ Java is a registered trademark of Oracle and/or its affiliates.
201201
[kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html
202202
[stability-image]: https://img.shields.io/badge/stability-preview-yellow
203203
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-batch.svg
204-
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-batch/0.28.0
204+
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-batch/0.29.0
205205
[authentication]: https://github.com/googleapis/google-cloud-java#authentication
206206
[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes
207207
[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles

java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/TaskGroup.java

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,8 @@ public long getTaskCount() {
361361
*
362362
* <pre>
363363
* Max number of tasks that can run in parallel.
364-
* Default to min(task_count, 1000).
364+
* Default to min(task_count, parallel tasks per job limit).
365+
* See: [Job Limits](https://cloud.google.com/batch/quotas#job_limits).
365366
* Field parallelism must be 1 if the scheduling_policy is IN_ORDER.
366367
* </pre>
367368
*
@@ -1543,7 +1544,8 @@ public Builder clearTaskCount() {
15431544
*
15441545
* <pre>
15451546
* Max number of tasks that can run in parallel.
1546-
* Default to min(task_count, 1000).
1547+
* Default to min(task_count, parallel tasks per job limit).
1548+
* See: [Job Limits](https://cloud.google.com/batch/quotas#job_limits).
15471549
* Field parallelism must be 1 if the scheduling_policy is IN_ORDER.
15481550
* </pre>
15491551
*
@@ -1560,7 +1562,8 @@ public long getParallelism() {
15601562
*
15611563
* <pre>
15621564
* Max number of tasks that can run in parallel.
1563-
* Default to min(task_count, 1000).
1565+
* Default to min(task_count, parallel tasks per job limit).
1566+
* See: [Job Limits](https://cloud.google.com/batch/quotas#job_limits).
15641567
* Field parallelism must be 1 if the scheduling_policy is IN_ORDER.
15651568
* </pre>
15661569
*
@@ -1581,7 +1584,8 @@ public Builder setParallelism(long value) {
15811584
*
15821585
* <pre>
15831586
* Max number of tasks that can run in parallel.
1584-
* Default to min(task_count, 1000).
1587+
* Default to min(task_count, parallel tasks per job limit).
1588+
* See: [Job Limits](https://cloud.google.com/batch/quotas#job_limits).
15851589
* Field parallelism must be 1 if the scheduling_policy is IN_ORDER.
15861590
* </pre>
15871591
*

java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/TaskGroupOrBuilder.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,8 @@ public interface TaskGroupOrBuilder
111111
*
112112
* <pre>
113113
* Max number of tasks that can run in parallel.
114-
* Default to min(task_count, 1000).
114+
* Default to min(task_count, parallel tasks per job limit).
115+
* See: [Job Limits](https://cloud.google.com/batch/quotas#job_limits).
115116
* Field parallelism must be 1 if the scheduling_policy is IN_ORDER.
116117
* </pre>
117118
*

java-batch/proto-google-cloud-batch-v1/src/main/proto/google/cloud/batch/v1/job.proto

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -549,7 +549,8 @@ message TaskGroup {
549549
int64 task_count = 4;
550550

551551
// Max number of tasks that can run in parallel.
552-
// Default to min(task_count, 1000).
552+
// Default to min(task_count, parallel tasks per job limit).
553+
// See: [Job Limits](https://cloud.google.com/batch/quotas#job_limits).
553554
// Field parallelism must be 1 if the scheduling_policy is IN_ORDER.
554555
int64 parallelism = 5;
555556

java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/TaskGroup.java

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,8 @@ public long getTaskCount() {
379379
*
380380
* <pre>
381381
* Max number of tasks that can run in parallel.
382-
* Default to min(task_count, 1000).
382+
* Default to min(task_count, parallel tasks per job limit).
383+
* See: [Job Limits](https://cloud.google.com/batch/quotas#job_limits).
383384
* Field parallelism must be 1 if the scheduling_policy is IN_ORDER.
384385
* </pre>
385386
*
@@ -1828,7 +1829,8 @@ public Builder clearTaskCount() {
18281829
*
18291830
* <pre>
18301831
* Max number of tasks that can run in parallel.
1831-
* Default to min(task_count, 1000).
1832+
* Default to min(task_count, parallel tasks per job limit).
1833+
* See: [Job Limits](https://cloud.google.com/batch/quotas#job_limits).
18321834
* Field parallelism must be 1 if the scheduling_policy is IN_ORDER.
18331835
* </pre>
18341836
*
@@ -1845,7 +1847,8 @@ public long getParallelism() {
18451847
*
18461848
* <pre>
18471849
* Max number of tasks that can run in parallel.
1848-
* Default to min(task_count, 1000).
1850+
* Default to min(task_count, parallel tasks per job limit).
1851+
* See: [Job Limits](https://cloud.google.com/batch/quotas#job_limits).
18491852
* Field parallelism must be 1 if the scheduling_policy is IN_ORDER.
18501853
* </pre>
18511854
*
@@ -1866,7 +1869,8 @@ public Builder setParallelism(long value) {
18661869
*
18671870
* <pre>
18681871
* Max number of tasks that can run in parallel.
1869-
* Default to min(task_count, 1000).
1872+
* Default to min(task_count, parallel tasks per job limit).
1873+
* See: [Job Limits](https://cloud.google.com/batch/quotas#job_limits).
18701874
* Field parallelism must be 1 if the scheduling_policy is IN_ORDER.
18711875
* </pre>
18721876
*

java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/TaskGroupOrBuilder.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,8 @@ public interface TaskGroupOrBuilder
114114
*
115115
* <pre>
116116
* Max number of tasks that can run in parallel.
117-
* Default to min(task_count, 1000).
117+
* Default to min(task_count, parallel tasks per job limit).
118+
* See: [Job Limits](https://cloud.google.com/batch/quotas#job_limits).
118119
* Field parallelism must be 1 if the scheduling_policy is IN_ORDER.
119120
* </pre>
120121
*

java-batch/proto-google-cloud-batch-v1alpha/src/main/proto/google/cloud/batch/v1alpha/job.proto

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -628,7 +628,8 @@ message TaskGroup {
628628
int64 task_count = 4;
629629

630630
// Max number of tasks that can run in parallel.
631-
// Default to min(task_count, 1000).
631+
// Default to min(task_count, parallel tasks per job limit).
632+
// See: [Job Limits](https://cloud.google.com/batch/quotas#job_limits).
632633
// Field parallelism must be 1 if the scheduling_policy is IN_ORDER.
633634
int64 parallelism = 5;
634635

0 commit comments

Comments
 (0)