core/classes/Queue.class.php
public function killJob($pId){

        $j = $this->jobs();

        global $argv;

        foreach($j as $job){
            if($job->pId == $pId){
                exec('kill ' . $job->pId);
                if($argv[1] == 'kill-job'){
                    echo 'Killed Job # ' . $job->pId . ' Action:' . $job->object . '@' . $job->method . PHP_EOL;
                }//if
                return true;
            }//if
        }//foreach

        if($argv[1] == 'kill-job'){
            echo 'No Job # ' . $pId . PHP_EOL;
        }//if

        return false;

    }
public function killJob($pId){

        $j = $this->jobs();

        global $argv;

        foreach($j as $job){
            if($job->pId == $pId){
                exec('kill ' . $job->pId);
                if($argv[1] == 'kill-job'){
                    echo 'Killed Job # ' . $job->pId . ' Action:' . $job->object . '@' . $job->method . PHP_EOL;
                }//if
                return true;
            }//if
        }//foreach

        if($argv[1] == 'kill-job'){
            echo 'No Job # ' . $pId . PHP_EOL;
        }//if

        return false;

    }
public function killJob ( $ pId ) { $ j = $ this -> jobs ( ) ; global $ argv ; foreach ( $ j as $ job ) { if ( $ job -> pId == $ pId ) { exec ( 'kill ' . $ job -> pId ) ; if ( $ argv [ 1 ] == 'kill-job' ) { echo 'Killed Job # ' . $ job -> pId . ' Action:' . $ job -> object . '@' . $ job -> method . PHP_EOL ; } //if return true ; } //if } //foreach if ( $ argv [ 1 ] == 'kill-job' ) { echo 'No Job # ' . $ pId . PHP_EOL ; } //if return false ; }
Kill a Queued job by passing its process ID number


@param integer $pId The jobs process ID.

@return boolean Whether or not the job was killed.
Kill a Queued job by passing its process ID number