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

95 lines
3.0 KiB
Plaintext
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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
---
<span id="qiskit-providers-models-jobstatus" />
# qiskit.providers.models.JobStatus
<Class id="qiskit.providers.models.JobStatus" isDedicatedPage={true} github="https://github.com/qiskit/qiskit/tree/stable/0.16/qiskit/providers/models/jobstatus.py" signature="JobStatus(job_id, status, status_msg, **kwargs)" modifiers="class">
Model for JobStatus.
### job\_id
<Attribute id="qiskit.providers.models.JobStatus.job_id">
backend job\_id.
**Type**
str
</Attribute>
### status
<Attribute id="qiskit.providers.models.JobStatus.status">
status of the job.
**Type**
str
</Attribute>
### status\_msg
<Attribute id="qiskit.providers.models.JobStatus.status_msg">
status message.
**Type**
str
</Attribute>
### \_\_init\_\_
<Function id="qiskit.providers.models.JobStatus.__init__" signature="__init__(job_id, status, status_msg, **kwargs)">
Initialize self. See help(type(self)) for accurate signature.
</Function>
## Methods
| | |
| ------------------------------------------------------------------------------------------------------------------------------------------------ | ----------------------------------------------------------- |
| [`__init__`](#qiskit.providers.models.JobStatus.__init__ "qiskit.providers.models.JobStatus.__init__")(job\_id, status, status\_msg, \*\*kwargs) | Initialize self. |
| [`from_dict`](#qiskit.providers.models.JobStatus.from_dict "qiskit.providers.models.JobStatus.from_dict")(data) | Create a new JobStatus object from a dictionary. |
| [`to_dict`](#qiskit.providers.models.JobStatus.to_dict "qiskit.providers.models.JobStatus.to_dict")() | Return a dictionary format representation of the JobStatus. |
### from\_dict
<Function id="qiskit.providers.models.JobStatus.from_dict" signature="from_dict(data)" modifiers="classmethod">
Create a new JobStatus object from a dictionary.
**Parameters**
**data** (*dict*) 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**
qiskit.providers.model.JobStatus
</Function>
### to\_dict
<Function id="qiskit.providers.models.JobStatus.to_dict" signature="to_dict()">
Return a dictionary format representation of the JobStatus.
**Returns**
The dictionary form of the JobStatus.
**Return type**
dict
</Function>
</Class>