JobResult¶
- class safir.arq.JobResult(id, name, args, kwargs, enqueue_time, status, queue_name, start_time, finish_time, success, result)¶
 Bases:
JobMetadataThe full result of a job, as well as its metadata.
- name¶
 The task name.
- args¶
 The positional arguments to the task function.
- kwargs¶
 The keyword arguments to the task function.
- enqueue_time¶
 Time when the job was added to the queue.
- status¶
 Status of the job.
States are defined by the
arq.jobs.JobStatusenumeration:deferred(in queue, but waiting a predetermined time to become ready to run)queued(queued to run)in_progress(actively being run by a worker)complete(result is available)not_found(the job cannot be found)
- start_time¶
 Time when the job started.
- finish_time¶
 Time when the job finished.
- result¶
 The job’s result.
- Parameters:
 
Methods Summary
from_job(job)Methods Documentation
- async classmethod from_job(job)¶
 Initialize the
JobResultfrom an arqJob.- Raises:
 JobNotFound – Raised if the job is not found
JobResultUnavailable – Raised if the job result is not available.
- Parameters:
 job (
Job)- Return type:
 Self