French
Languages
English
Bengali
French
German
Japanese
Korean
Portuguese
Spanish
Tamil

AlgorithmJob

class AlgorithmJob(function, *args, **kwargs)[source]

Bases : PrimitiveJob

This empty class is introduced for typing purposes.

Paramètres

function – a callable function to execute the job.

Methods

backend

Return the backend where this job was executed.

cancel

Attempt to cancel the job.

cancelled

Return whether the job has been cancelled.

done

Return whether the job has successfully run.

in_final_state

Return whether the job is in a final job state such as DONE or ERROR.

job_id

Return a unique id identifying the job.

result

Return the results of the job.

running

Return whether the job is actively running.

status

Return the status of the job, among the values of JobStatus.

submit

Submit the job to the backend for execution.

wait_for_final_state

Poll the job status until it progresses to a final state such as DONE or ERROR.

Attributes

version = 1