Internal Jobs#
- class InternalJobStatusEnum[source]#
-
The state of a record object. The states which are available are a finite set.
- complete = 'complete'#
- waiting = 'waiting'#
- running = 'running'#
- error = 'error'#
- cancelled = 'cancelled'#
- __init__(*args, **kwds)#
- class InternalJob[source]#
Bases:
BaseModelFields# Field
Type
Required
Default
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
No
NoneYes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
- status: InternalJobStatusEnum#
- __init__(client=None, refresh_url=None, **kwargs)[source]#
Create a new model by parsing and validating input data from keyword arguments.
Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.
self is explicitly positional-only to allow self as a field name.
- watch(interval=2.0, timeout=None)[source]#
Watch an internal job for completion
Will poll every interval seconds until the job is finished (complete, error, cancelled, etc).
- model_post_init(context, /)#
This function is meant to behave like a BaseModel method to initialize private attributes.
It takes context as an argument since that’s what pydantic-core passes when calling it.
- Parameters:
self (BaseModel) – The BaseModel instance.
context (Any) – The context.
- Return type:
None
- class InternalJobQueryFilters[source]#
Bases:
QueryProjModelBaseFields# Field
Type
Required
Default
No
NoneNo
NoneNo
NoneNo
NoneNo
NoneNo
NoneNo
NoneNo
NoneNo
NoneNo
NoneNo
NoneNo
NoneNo
NoneNo
NoneNo
NoneValidators# Validator
Mode
Fields
before
last_updated_before,last_updated_after,added_before,added_after,scheduled_before,scheduled_afterbefore
- status: list[InternalJobStatusEnum] | None#
- classmethod validate_lists(v)#
- limit#
- cursor#
- include#
- exclude#
- class InternalJobQueryIterator[source]#
Bases:
QueryIteratorBase[InternalJob]Iterator for internal job queries
This iterator transparently handles batching and pagination over the results of an internal job query.
- __init__(client, query_filters)[source]#
Construct an iterator
- Parameters:
client – QCPortal client object used to contact/retrieve data from the server
query_filters (InternalJobQueryFilters) – The actual query information to send to the server
- reset()#
Starts retrieval of results from the beginning again