Symbiote\QueuedJobs\Services\QueuedJobService::onShutdown
When PHP shuts down, we want to process all of the immediate queue items
We use the 'getNextPendingJob' method, instead of just iterating the queue, to ensure we ignore paused or stalled jobs.
Signature
public function onShutdown()