If a job has the status queued during a get_job call, it is added to self.jobs_tracking with the status queued. If you now call get_job again, no new job details are retrieved via the REST API, but only the old job details are returned. This is not a problem for completed and failed jobs, but it is for queued jobs. Therefore, it must be additionally checked that the job status is not queued.
If a job has the status
queued
during aget_job
call, it is added toself.jobs_tracking
with the statusqueued
. If you now callget_job
again, no new job details are retrieved via the REST API, but only the old job details are returned. This is not a problem forcompleted
andfailed
jobs, but it is forqueued
jobs. Therefore, it must be additionally checked that the job status is notqueued
.