In the previous implementation, the status of a job was defined after the job was enqueued, resulting in the job never being removed from the finished/deferred/scheduled registry because once a job was enqueued, the job status changed to JobStatus.QUEUED.
In the previous implementation, the status of a job was defined after the job was enqueued, resulting in the job never being removed from the finished/deferred/scheduled registry because once a job was enqueued, the job status changed to
JobStatus.QUEUED
.