AlgorithmJob¶
- class AlgorithmJob(function, *args, **kwargs)[source]¶
Bases:
PrimitiveJob
This class is introduced for typing purposes and provides no additional function beyond that inherited from its parents.
- Parameters:
function – A callable function to execute the job.
Methods
- cancel()¶
Attempt to cancel the job.
- in_final_state()¶
Return whether the job is in a final job state such as
DONE
orERROR
.- Return type:
- result()¶
Return the results of the job.
- Return type:
ResultT