public function getJobsetExecutionStatus()
    {
        $finished = count($this->jobs) > 0 ? true : false;
        $failed = false;
        $middle = false;

        foreach ($this->jobs as $job) {
            if ($job->isFailed()) {
                $finished = false;
                $middle = false;
                $failed = true;
                break;
            }
            $finished = $finished && $job->isFinished();
            if (!$job->isFinished() && !$job->isFailed()) {
                $middle = true;
            }
        }

        if ($failed) {
            return JobsConst::JOB_SET_STATUS_FAILED;
        } elseif ($finished) {
            return JobsConst::JOB_SET_STATUS_FINISHED;
        } elseif ($middle) {
            return JobsConst::JOB_SET_STATUS_ONGOING;
        } else {
            return JobsConst::JOB_SET_STATUS_DEFAULT;
        }
    }