public function halt()
    {
        if($this->getProcess()->getPid() == getmypid()) {
            $this->stop();
            $this->haltCurrentJob();
        }else{
            $this->getProcess()->kill(SIGINT);
        }
    }
public function halt()
    {
        if($this->getProcess()->getPid() == getmypid()) {
            $this->stop();
            $this->haltCurrentJob();
        }else{
            $this->getProcess()->kill(SIGINT);
        }
    }
public function halt ( ) { if ( $ this -> getProcess ( ) -> getPid ( ) == getmypid ( ) ) { $ this -> stop ( ) ; $ this -> haltCurrentJob ( ) ; } else { $ this -> getProcess ( ) -> kill ( SIGINT ) ; } }
Force an immediate shutdown of the worker, killing any child jobs
currently running, or the job it is currently working on.
Force an immediate shutdown of the worker killing any child jobs currently running or the job it is currently working on .