# boulderopalscaleup.QctrlScaleUpClient.get_jobs

Source: https://docs.q-ctrl.com/references/boulder-opal-scale-up/boulderopalscaleup/client/get_jobs

```python
*async* QctrlScaleUpClient.get_jobs(device_name=None, job_name=None, page=1, limit=10, sort_order=JobHistorySortOrder.CREATED_AT_DESC, statuses=None)
```

Retrieves all the jobs that have been previously executed on the given device.

### Parameters
* **device_name** (*str*) – The name of the device to filter the history by. Defaults to current.
* **job_name** (*str* *,* *optional*) – The name of the job to filter the history by. Defaults to None.
* **page** (*int* *,* *optional*) – The page number to retrieve. Defaults to 1.
* **limit** (*int* *,* *optional*) – The number of jobs to retrieve per page. Defaults to 10.
* **sort_order** ([*JobHistorySortOrder*](https://docs.q-ctrl.com/references/boulder-opal-scale-up/boulderopalscaleup/jobs/JobHistorySortOrder.md#boulderopalscaleup.jobs.JobHistorySortOrder) *,* *optional*) – The sort order for the results.
  Defaults to reverse chronological.
* **statuses** (*list* *[*[*JobStatus*](https://docs.q-ctrl.com/references/boulder-opal-scale-up/boulderopalscaleup/jobs/JobStatus.md#boulderopalscaleup.jobs.JobStatus) *] or* [*JobStatus*](https://docs.q-ctrl.com/references/boulder-opal-scale-up/boulderopalscaleup/jobs/JobStatus.md#boulderopalscaleup.jobs.JobStatus) *or* *None* *,* *optional*) – One or more statuses to filter by. Defaults to all job types.
### Returns
The history of jobs run.
### Return type
list[[JobSummary](https://docs.q-ctrl.com/references/boulder-opal-scale-up/boulderopalscaleup/jobs/JobSummary.md#boulderopalscaleup.jobs.JobSummary)]
### Raises
* `ScaleUpClientError` – If the device name is not set.
* `ScaleUpServerError` – If the response is invalid.
