public function cleanup()
    {
        foreach ($this->workerList as $worker) {
            if (!$worker->isValid()) {
                $this->removeWorker($worker);
            }
        }

        return $this;
    }
public function cleanup()
    {
        foreach ($this->workerList as $worker) {
            if (!$worker->isValid()) {
                $this->removeWorker($worker);
            }
        }

        return $this;
    }
public function cleanup ( ) { foreach ( $ this -> workerList as $ worker ) { if ( ! $ worker -> isValid ( ) ) { $ this -> removeWorker ( $ worker ) ; } } return $ this ; }
Removes all invalid workers.

@return Action
Removes all invalid workers .