Workload
Workload(**data)
Bases: BaseModel
Class for workload data.
ATTRIBUTE | DESCRIPTION |
---|---|
id |
Unique identifier for the workload.
TYPE:
|
project_id |
ID of the project which the users scheduling the workload belong to.
TYPE:
|
status |
Status of the workload. Possible values are: PENDING, RUNNING, DONE, CANCELED, TIMED_OUT, ERROR, PAUSED.
TYPE:
|
_client |
A Client instance to connect to PCS.
TYPE:
|
backend |
The backend used for the workload.
TYPE:
|
workload_type |
The type of the workload.
TYPE:
|
config |
The config containing all the necessary information for the workload to run.
TYPE:
|
created_at |
Timestamp of the creation of the workload.
TYPE:
|
updated_at |
Timestamp of the last update of the workload.
TYPE:
|
errors |
Error messages that occurred while processing workload.
TYPE:
|
start_timestamp |
The timestamp of when the workload began processing.
TYPE:
|
end_timestamp |
The timestamp of when the workload finished processing.
TYPE:
|
result |
Result of the workload.
TYPE:
|
Source code in pasqal_cloud/workload.py
cancel()
Cancel the current job on the PCS.