public class JobsExt extends JobsAPI
| Constructor and Description |
|---|
JobsExt(ApiClient apiClient) |
JobsExt(JobsService mock) |
| Modifier and Type | Method and Description |
|---|---|
Job |
get(GetJobRequest request)
Wrap the
JobsApi.get operation to retrieve paginated content without breaking the
response contract. |
Run |
getRun(GetRunRequest request)
Wrap the
JobsApi.getRun operation to retrieve paginated content without breaking the
response contract. |
Iterable<BaseJob> |
list(ListJobsRequest request)
List jobs.
|
Iterable<BaseRun> |
listRuns(ListRunsRequest request)
List job runs.
|
cancelAllRuns, cancelRun, cancelRun, create, delete, delete, deleteRun, deleteRun, exportRun, exportRun, get, getPermissionLevels, getPermissionLevels, getPermissions, getPermissions, getRun, getRunOutput, getRunOutput, impl, repairRun, repairRun, reset, reset, runNow, runNow, setPermissions, setPermissions, submit, update, update, updatePermissions, updatePermissions, waitGetRunJobTerminatedOrSkipped, waitGetRunJobTerminatedOrSkippedpublic JobsExt(ApiClient apiClient)
public JobsExt(JobsService mock)
public Iterable<BaseJob> list(ListJobsRequest request)
Retrieves a list of jobs. If the job has multiple pages of tasks, job_clusters, parameters or environments, it will paginate through all pages and aggregate the results.
public Iterable<BaseRun> listRuns(ListRunsRequest request)
Retrieve a list of runs. If the run has multiple pages of tasks, job_clusters, parameters or repair_history, it will paginate through all pages and aggregate the results.
public Run getRun(GetRunRequest request)
JobsApi.getRun operation to retrieve paginated content without breaking the
response contract.
Depending on the Jobs API version used under the hood, tasks or iteration runs retrieved by
the initial request may be truncated due to high cardinalities. Truncation can happen for job
runs with over 100 task runs, as well as ForEach task runs with over 100 iteration runs. To
avoid returning an incomplete Run object to the user, this method performs all the
requests required to collect all task/iteration runs into a single Run object.
public Job get(GetJobRequest request)
JobsApi.get operation to retrieve paginated content without breaking the
response contract.
Depending on the Jobs API version used under the hood, tasks or job_clusters retrieved by
the initial request may be truncated due to high cardinalities. Truncation can happen for jobs
with over 100 tasks, as well as job_clusters with over 100 elements. To avoid returning an
incomplete Job object to the user, this method performs all the requests required to
collect all tasks and job_clusters into a single Job object.
Copyright © 2025. All rights reserved.