public function proccess()
    {
        foreach ($this->runningJobs as $jobData) {
            $this->isRunning($jobData->job);
        }

        foreach ($this->pendingJobs as $job) {
            $this->start($job);
        }
    }
public function proccess()
    {
        foreach ($this->runningJobs as $jobData) {
            $this->isRunning($jobData->job);
        }

        foreach ($this->pendingJobs as $job) {
            $this->start($job);
        }
    }
public function proccess ( ) { foreach ( $ this -> runningJobs as $ jobData ) { $ this -> isRunning ( $ jobData -> job ) ; } foreach ( $ this -> pendingJobs as $ job ) { $ this -> start ( $ job ) ; } }
Process all running jobs and check if they have finished.

This method should be called every second or less !
Process all running jobs and check if they have finished .