src/Services/QueuedJobService.php
public function getJobList($type = null, $includeUpUntil = 0)
    {
        return DataObject::get(
            QueuedJobDescriptor::class,
            $this->getJobListFilter($type, $includeUpUntil)
        );
    }
public function getJobList($type = null, $includeUpUntil = 0)
    {
        return DataObject::get(
            QueuedJobDescriptor::class,
            $this->getJobListFilter($type, $includeUpUntil)
        );
    }
Gets a list of all the current jobs (or jobs that have recently finished)

@param string $type
if we're after a particular job list
@param int $includeUpUntil
The number of seconds to include jobs that have just finished, allowing a job list to be built that
includes recently finished jobs

@return DataList|QueuedJobDescriptor[]