qiskit-documentation/docs/api/qiskit/qiskit.providers.models.Job...

81 lines
2.5 KiB
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
title: JobStatus
description: API reference for qiskit.providers.models.JobStatus
in_page_toc_min_heading_level: 1
python_api_type: class
python_api_name: qiskit.providers.models.JobStatus
---
# JobStatus
<Class id="qiskit.providers.models.JobStatus" isDedicatedPage={true} github="https://github.com/Qiskit/qiskit/tree/stable/1.1/qiskit/providers/models/jobstatus.py#L16-L66" signature="qiskit.providers.models.JobStatus(job_id, status, status_msg, **kwargs)" modifiers="class">
Bases: [`object`](https://docs.python.org/3/library/functions.html#object "(in Python v3.12)")
Model for JobStatus.
### job\_id
<Attribute id="qiskit.providers.models.JobStatus.job_id">
backend job\_id.
**Type**
[str](https://docs.python.org/3/library/stdtypes.html#str "(in Python v3.12)")
</Attribute>
### status
<Attribute id="qiskit.providers.models.JobStatus.status">
status of the job.
**Type**
[str](https://docs.python.org/3/library/stdtypes.html#str "(in Python v3.12)")
</Attribute>
### status\_msg
<Attribute id="qiskit.providers.models.JobStatus.status_msg">
status message.
**Type**
[str](https://docs.python.org/3/library/stdtypes.html#str "(in Python v3.12)")
</Attribute>
## Methods
### from\_dict
<Function id="qiskit.providers.models.JobStatus.from_dict" github="https://github.com/Qiskit/qiskit/tree/stable/1.1/qiskit/providers/models/jobstatus.py#L34-L46" signature="from_dict(data)" modifiers="classmethod">
Create a new JobStatus object from a dictionary.
**Parameters**
**data** ([*dict*](https://docs.python.org/3/library/stdtypes.html#dict "(in Python v3.12)")) A dictionary representing the JobStatus to create. It will be in the same format as output by [`to_dict()`](#qiskit.providers.models.JobStatus.to_dict "qiskit.providers.models.JobStatus.to_dict").
**Returns**
The `JobStatus` from the input dictionary.
**Return type**
[JobStatus](#qiskit.providers.models.JobStatus "qiskit.providers.models.JobStatus")
</Function>
### to\_dict
<Function id="qiskit.providers.models.JobStatus.to_dict" github="https://github.com/Qiskit/qiskit/tree/stable/1.1/qiskit/providers/models/jobstatus.py#L48-L60" signature="to_dict()">
Return a dictionary format representation of the JobStatus.
**Returns**
The dictionary form of the JobStatus.
**Return type**
[dict](https://docs.python.org/3/library/stdtypes.html#dict "(in Python v3.12)")
</Function>
</Class>