Job
Job(**data)
Bases: BaseModel
Class for job data.
ATTRIBUTE | DESCRIPTION |
---|---|
runs |
Number of times the job should be run.
TYPE:
|
batch_id |
ID of the batch which the job belongs to.
TYPE:
|
id |
Unique identifier for the job.
TYPE:
|
project_id |
ID of the project which the users scheduling the job belong to.
TYPE:
|
status |
Status of the job. Possible values are: PENDING, RUNNING, DONE, CANCELED, TIMED_OUT, ERROR, PAUSED.
TYPE:
|
_client |
A Client instance to connect to PCS.
TYPE:
|
created_at |
Timestamp of the creation of the job.
TYPE:
|
updated_at |
Timestamp of the last update of the job.
TYPE:
|
errors |
Error messages that occurred while processing job.
TYPE:
|
start_timestamp |
The timestamp of when the job began processing.
TYPE:
|
end_timestamp |
The timestamp of when the job finished processing.
TYPE:
|
full_result |
Dictionnary of all the results obtained after complete execution of the job. It maps the type of results (e.g. "counter", "raw") to the associated execution result.
TYPE:
|
result |
Bitstring counter result. Should be equal to
TYPE:
|
variables |
Dictionary of variables of the job. None if the associated batch is non-parametrized.
TYPE:
|
Source code in pasqal_cloud/job.py
cancel()
Cancel the current job on the PCS.