Skip to content

Commit

Permalink
docs: [batch] update default max parallel tasks per job (#10011)
Browse files Browse the repository at this point in the history
* docs: Add clarification for `TaskGroup.parallelism`

PiperOrigin-RevId: 577945369

Source-Link: googleapis/googleapis@5a7e895

Source-Link: googleapis/googleapis-gen@b9705e9
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: googleapis/googleapis-gen@8ddd2e6
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>
  • Loading branch information
gcf-owl-bot[bot] and gcf-owl-bot[bot] committed Nov 1, 2023
1 parent 2bd259f commit 4edc21b
Show file tree
Hide file tree
Showing 7 changed files with 26 additions and 14 deletions.
4 changes: 2 additions & 2 deletions java-batch/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file:
<dependency>
<groupId>com.google.cloud</groupId>
<artifactId>libraries-bom</artifactId>
<version>26.25.0</version>
<version>26.26.0</version>
<type>pom</type>
<scope>import</scope>
</dependency>
Expand Down Expand Up @@ -201,7 +201,7 @@ Java is a registered trademark of Oracle and/or its affiliates.
[kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html
[stability-image]: https://img.shields.io/badge/stability-preview-yellow
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-batch.svg
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-batch/0.28.0
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-batch/0.29.0
[authentication]: https://github.com/googleapis/google-cloud-java#authentication
[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes
[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,8 @@ public long getTaskCount() {
*
* <pre>
* Max number of tasks that can run in parallel.
* Default to min(task_count, 1000).
* Default to min(task_count, parallel tasks per job limit).
* See: [Job Limits](https://cloud.google.com/batch/quotas#job_limits).
* Field parallelism must be 1 if the scheduling_policy is IN_ORDER.
* </pre>
*
Expand Down Expand Up @@ -1543,7 +1544,8 @@ public Builder clearTaskCount() {
*
* <pre>
* Max number of tasks that can run in parallel.
* Default to min(task_count, 1000).
* Default to min(task_count, parallel tasks per job limit).
* See: [Job Limits](https://cloud.google.com/batch/quotas#job_limits).
* Field parallelism must be 1 if the scheduling_policy is IN_ORDER.
* </pre>
*
Expand All @@ -1560,7 +1562,8 @@ public long getParallelism() {
*
* <pre>
* Max number of tasks that can run in parallel.
* Default to min(task_count, 1000).
* Default to min(task_count, parallel tasks per job limit).
* See: [Job Limits](https://cloud.google.com/batch/quotas#job_limits).
* Field parallelism must be 1 if the scheduling_policy is IN_ORDER.
* </pre>
*
Expand All @@ -1581,7 +1584,8 @@ public Builder setParallelism(long value) {
*
* <pre>
* Max number of tasks that can run in parallel.
* Default to min(task_count, 1000).
* Default to min(task_count, parallel tasks per job limit).
* See: [Job Limits](https://cloud.google.com/batch/quotas#job_limits).
* Field parallelism must be 1 if the scheduling_policy is IN_ORDER.
* </pre>
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,8 @@ public interface TaskGroupOrBuilder
*
* <pre>
* Max number of tasks that can run in parallel.
* Default to min(task_count, 1000).
* Default to min(task_count, parallel tasks per job limit).
* See: [Job Limits](https://cloud.google.com/batch/quotas#job_limits).
* Field parallelism must be 1 if the scheduling_policy is IN_ORDER.
* </pre>
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -549,7 +549,8 @@ message TaskGroup {
int64 task_count = 4;

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,8 @@ public long getTaskCount() {
*
* <pre>
* Max number of tasks that can run in parallel.
* Default to min(task_count, 1000).
* Default to min(task_count, parallel tasks per job limit).
* See: [Job Limits](https://cloud.google.com/batch/quotas#job_limits).
* Field parallelism must be 1 if the scheduling_policy is IN_ORDER.
* </pre>
*
Expand Down Expand Up @@ -1828,7 +1829,8 @@ public Builder clearTaskCount() {
*
* <pre>
* Max number of tasks that can run in parallel.
* Default to min(task_count, 1000).
* Default to min(task_count, parallel tasks per job limit).
* See: [Job Limits](https://cloud.google.com/batch/quotas#job_limits).
* Field parallelism must be 1 if the scheduling_policy is IN_ORDER.
* </pre>
*
Expand All @@ -1845,7 +1847,8 @@ public long getParallelism() {
*
* <pre>
* Max number of tasks that can run in parallel.
* Default to min(task_count, 1000).
* Default to min(task_count, parallel tasks per job limit).
* See: [Job Limits](https://cloud.google.com/batch/quotas#job_limits).
* Field parallelism must be 1 if the scheduling_policy is IN_ORDER.
* </pre>
*
Expand All @@ -1866,7 +1869,8 @@ public Builder setParallelism(long value) {
*
* <pre>
* Max number of tasks that can run in parallel.
* Default to min(task_count, 1000).
* Default to min(task_count, parallel tasks per job limit).
* See: [Job Limits](https://cloud.google.com/batch/quotas#job_limits).
* Field parallelism must be 1 if the scheduling_policy is IN_ORDER.
* </pre>
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,8 @@ public interface TaskGroupOrBuilder
*
* <pre>
* Max number of tasks that can run in parallel.
* Default to min(task_count, 1000).
* Default to min(task_count, parallel tasks per job limit).
* See: [Job Limits](https://cloud.google.com/batch/quotas#job_limits).
* Field parallelism must be 1 if the scheduling_policy is IN_ORDER.
* </pre>
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -628,7 +628,8 @@ message TaskGroup {
int64 task_count = 4;

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

Expand Down

0 comments on commit 4edc21b

Please sign in to comment.