Skip to content

Commit 73925a7

Browse files
committed
fmt
1 parent 8d0698b commit 73925a7

File tree

1 file changed

+11
-6
lines changed
  • databricks-sdk-java/src/main/java/com/databricks/sdk/mixin

1 file changed

+11
-6
lines changed

databricks-sdk-java/src/main/java/com/databricks/sdk/mixin/JobsExt.java

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,20 @@ public JobsExt(JobsService mock) {
2020
*
2121
* <p>Depending on the Jobs API version used under the hood, tasks or iteration runs retrieved by
2222
* the initial request may be truncated due to high cardinalities. Truncation can happen for job
23-
* runs with over 100 task runs, as well as ForEach task runs with over 100 iteration runs. To avoid
24-
* returning an incomplete {@code Run} object to the user, this method performs all the requests
25-
* required to collect all task/iteration runs into a single {@code Run} object.
23+
* runs with over 100 task runs, as well as ForEach task runs with over 100 iteration runs. To
24+
* avoid returning an incomplete {@code Run} object to the user, this method performs all the
25+
* requests required to collect all task/iteration runs into a single {@code Run} object.
2626
*/
2727
@Override
2828
public Run getRun(GetRunRequest request) {
2929
Run run = super.getRun(request);
3030

31-
// When querying a Job run, a page token is returned when there are more than 100 tasks. No iterations are defined for a Job run. Therefore, the next page in the response only includes the next page of tasks.
32-
// When querying a ForEach task run, a page token is returned when there are more than 100 iterations. Only a single task is returned, corresponding to the ForEach task itself. Therefore, the client only reads the iterations from the next page and not the tasks.
31+
// When querying a Job run, a page token is returned when there are more than 100 tasks. No
32+
// iterations are defined for a Job run. Therefore, the next page in the response only includes
33+
// the next page of tasks.
34+
// When querying a ForEach task run, a page token is returned when there are more than 100
35+
// iterations. Only a single task is returned, corresponding to the ForEach task itself.
36+
// Therefore, the client only reads the iterations from the next page and not the tasks.
3337
Collection<RunTask> iterations = run.getIterations();
3438
boolean paginatingIterations = iterations != null && !iterations.isEmpty();
3539

@@ -49,7 +53,8 @@ public Run getRun(GetRunRequest request) {
4953
}
5054
}
5155

52-
// Each new page of runs/get response includes the next page of the job_clusters, job_parameters, and repair history.
56+
// Each new page of runs/get response includes the next page of the job_clusters,
57+
// job_parameters, and repair history.
5358
Collection<JobCluster> newClusters = currRun.getJobClusters();
5459
if (newClusters != null) {
5560
run.getJobClusters().addAll(newClusters);

0 commit comments

Comments
 (0)