src/Contracts/BaseJobset.php
public function dispatched()
    {
        // Only finished or failed jobset should be dispatched
        if ($this->isFinished() || $this->isFailed()) {
            $status = $this->isFinished() ?
                JobsConst::JOB_SET_STATUS_FINISHED_AND_DISPATCHED : JobsConst::JOB_SET_STATUS_FAILED_AND_DISPATCHED;

            return $this->model->updateStatus($status);
        }

        return false;
    }
public function dispatched()
    {
        // Only finished or failed jobset should be dispatched
        if ($this->isFinished() || $this->isFailed()) {
            $status = $this->isFinished() ?
                JobsConst::JOB_SET_STATUS_FINISHED_AND_DISPATCHED : JobsConst::JOB_SET_STATUS_FAILED_AND_DISPATCHED;

            return $this->model->updateStatus($status);
        }

        return false;
    }
public function dispatched ( ) { // Only finished or failed jobset should be dispatched if ( $ this -> isFinished ( ) || $ this -> isFailed ( ) ) { $ status = $ this -> isFinished ( ) ? JobsConst :: JOB_SET_STATUS_FINISHED_AND_DISPATCHED : JobsConst :: JOB_SET_STATUS_FAILED_AND_DISPATCHED ; return $ this -> model -> updateStatus ( $ status ) ; } return false ; }
After successfully notice to commander, we mark the jobset as dispatched here.
After successfully notice to commander we mark the jobset as dispatched here .