src/Contracts/BaseJobset.php
public function execute()
    {
        // If the jobset is finished or failed
        // the jobset may need to be dispatched
        // so we return true
        if ($this->isFinished() || $this->isFailed()) {
            return true;
        }
        // Just return false to tell to terminate the process
        if (!$this->isInTime()) {
            return false;
        }
        // return false means the jobset is done
        // and the process should be terminated
        if ($this->isDispatched() || $this->isCanceled()) {
            return false;
        }

        try {
            if (!$this->jobs) {
                $this->initJobs();
            }

            $this->doUnorderedJobs();
            $this->doOrderedJobs();

            $status = $this->getJobsetExecutionStatus();
            if ($status === JobsConst::JOB_SET_STATUS_FAILED) {
                $this->failed();
            } else {
                $this->updateStatus($status);
            }
        } catch (\Exception $e) {
            // just throw it
            throw $e;
        }

        return true;
    }
public function execute()
    {
        // If the jobset is finished or failed
        // the jobset may need to be dispatched
        // so we return true
        if ($this->isFinished() || $this->isFailed()) {
            return true;
        }
        // Just return false to tell to terminate the process
        if (!$this->isInTime()) {
            return false;
        }
        // return false means the jobset is done
        // and the process should be terminated
        if ($this->isDispatched() || $this->isCanceled()) {
            return false;
        }

        try {
            if (!$this->jobs) {
                $this->initJobs();
            }

            $this->doUnorderedJobs();
            $this->doOrderedJobs();

            $status = $this->getJobsetExecutionStatus();
            if ($status === JobsConst::JOB_SET_STATUS_FAILED) {
                $this->failed();
            } else {
                $this->updateStatus($status);
            }
        } catch (\Exception $e) {
            // just throw it
            throw $e;
        }

        return true;
    }
public function execute ( ) { // If the jobset is finished or failed // the jobset may need to be dispatched // so we return true if ( $ this -> isFinished ( ) || $ this -> isFailed ( ) ) { return true ; } // Just return false to tell to terminate the process if ( ! $ this -> isInTime ( ) ) { return false ; } // return false means the jobset is done // and the process should be terminated if ( $ this -> isDispatched ( ) || $ this -> isCanceled ( ) ) { return false ; } try { if ( ! $ this -> jobs ) { $ this -> initJobs ( ) ; } $ this -> doUnorderedJobs ( ) ; $ this -> doOrderedJobs ( ) ; $ status = $ this -> getJobsetExecutionStatus ( ) ; if ( $ status === JobsConst :: JOB_SET_STATUS_FAILED ) { $ this -> failed ( ) ; } else { $ this -> updateStatus ( $ status ) ; } } catch ( \ Exception $ e ) { // just throw it throw $ e ; } return true ; }
If return true, the jobset should be dispatched with considering its status
Or the jobset process should be terminated

@return bool
@throws \Exception
If return true the jobset should be dispatched with considering its status Or the jobset process should be terminated