public function onFinish() { unset($this->pool->workers[$this->workerId]); $this->pool->appInstance->updatedWorkers(); }